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

Commit 9ff8d13e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dp: cancel attention work on disconnect"

parents d8afe6db 6823d262
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -610,6 +610,8 @@ static int dp_display_usbpd_configure_cb(struct device *dev)
		goto end;
	}

	atomic_set(&dp->aborted, 0);

	dp_display_host_init(dp);

	/* check for hpd high and framework ready */
@@ -694,10 +696,10 @@ static int dp_display_usbpd_disconnect_cb(struct device *dev)

	/* wait for idle state */
	cancel_delayed_work(&dp->connect_work);
	cancel_work(&dp->attention_work);
	flush_workqueue(dp->wq);

	dp_display_handle_disconnect(dp);
	atomic_set(&dp->aborted, 0);
end:
	return rc;
}
@@ -801,6 +803,7 @@ static int dp_display_usbpd_attention_cb(struct device *dev)

		/* wait for idle state */
		cancel_delayed_work(&dp->connect_work);
		cancel_work(&dp->attention_work);
		flush_workqueue(dp->wq);

		dp_display_handle_disconnect(dp);