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 <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2018-11-02 09:19:33 +08:00
committed by Tao Huang
parent c4f7203e8f
commit 36d14bb2b4

View File

@@ -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);