From 36d14bb2b4fe041d484a8bd1e26067019348f412 Mon Sep 17 00:00:00 2001 From: Zheng Yang Date: Fri, 2 Nov 2018 09:19:33 +0800 Subject: [PATCH] drm/bridge: synopsys: dw-hdmi: delete mutex in dw_hdmi_suspend This patch delete the mutex in dw_hdmi_suspend. For there is no need to use mutex to protect disable_irq. And the same mutex is also used in the dw_hdmi_irq, mutex deadlock will occur when dw_hdmi_suspend and dw_hdmi_irq are called at the same time. Change-Id: I8cb6a6483aa4d32882e814656dd93317b5da9ad3 Signed-off-by: Zheng Yang --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 7157b2f422f0..4db241345d06 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -3900,10 +3900,8 @@ void dw_hdmi_suspend(struct device *dev) { struct dw_hdmi *hdmi = dev_get_drvdata(dev); - mutex_lock(&hdmi->mutex); if (hdmi->irq) disable_irq(hdmi->irq); - mutex_unlock(&hdmi->mutex); cancel_delayed_work(&hdmi->work); flush_workqueue(hdmi->workqueue); pinctrl_pm_select_sleep_state(dev);