mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
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:
parent
15c0dfe938
commit
0495591680
|
|
@ -3844,6 +3844,8 @@ void dw_hdmi_suspend(struct device *dev)
|
|||
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);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dw_hdmi_suspend);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user