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

Commit f6f378d6 authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa
Browse files

drm/msm/dp: fix HDCP error handling



Fix the HDCP error handling by removing a call to destroy
the shared workqueue. The shared workqueue is needed for
other driver events and is destroyed only when the driver
is being removed.

Change-Id: I568d45fab0580870382c4386814560c88d1902f4
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent 42123387
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -203,12 +203,6 @@ static void dp_display_notify_hdcp_status_cb(void *ptr,
		queue_delayed_work(dp->wq, &dp->hdcp_cb_work, HZ/4);
}

static void dp_display_destroy_hdcp_workqueue(struct dp_display_private *dp)
{
	if (dp->wq)
		destroy_workqueue(dp->wq);
}

static void dp_display_update_hdcp_info(struct dp_display_private *dp)
{
	void *fd = NULL;
@@ -270,7 +264,6 @@ static void dp_display_deinitialize_hdcp(struct dp_display_private *dp)
	}

	sde_dp_hdcp2p2_deinit(dp->hdcp.data);
	dp_display_destroy_hdcp_workqueue(dp);
	mutex_destroy(&dp->hdcp_mutex);
}

@@ -1976,6 +1969,9 @@ static int dp_display_remove(struct platform_device *pdev)

	dp_display_deinit_sub_modules(dp);

	if (dp->wq)
		destroy_workqueue(dp->wq);

	platform_set_drvdata(pdev, NULL);
	devm_kfree(&pdev->dev, dp);