mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02: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:
parent
fafb3e51b3
commit
4f730d741d
|
|
@ -3840,10 +3840,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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user