Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4ab8764 authored by Steve Cohen's avatar Steve Cohen
Browse files

drm/msm: retry disabling modes on -ERESTARTSYS during lastclose



Retry the msm_disable_all_modes_commit if it fails with -ERESTARTSYS.
This error would normally propagate up causing the upper layers to
re-trigger the call with the same arguments, but since lastclose
returns a void type the error is getting lost.  Therefore detect
-ERESTARTSYS and retry the commit ourselves.

Change-Id: Id6d1933965f5fdca0ac823ae1873a206fef82228
Signed-off-by: default avatarSteve Cohen <cohens@codeaurora.org>
parent 4126e402
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -973,7 +973,7 @@ static int msm_disable_all_modes(

	for (i = 0; i < TEARDOWN_DEADLOCK_RETRY_MAX; i++) {
		ret = msm_disable_all_modes_commit(dev, state);
		if (ret != -EDEADLK)
		if (ret != -EDEADLK || ret != -ERESTARTSYS)
			break;
		drm_atomic_state_clear(state);
		drm_modeset_backoff(ctx);