drm/bridge: synopsys: dw-hdmi: Fix crush when system suspend

If HDMI HPD detect delayed work won't be cancel, system will
crush because clk and PD has been disabled. So HDMI HPD detect
workqueue should be flushed when system suspend.

Change-Id: Idb8018c2efcffc3aee5fd80872f1270360809235
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao
2018-09-07 15:52:59 +08:00
committed by Tao Huang
parent edf6f3ed59
commit e9d76faff7

View File

@@ -4418,6 +4418,8 @@ void dw_hdmi_suspend(struct dw_hdmi *hdmi)
if (hdmi->irq)
disable_irq(hdmi->irq);
cancel_delayed_work(&hdmi->work);
flush_workqueue(hdmi->workqueue);
pinctrl_pm_select_sleep_state(hdmi->dev);
}
EXPORT_SYMBOL_GPL(dw_hdmi_suspend);