mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user