mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm: bridge: dw-hdmi: set hdmi ddc pin HI-Z when suspend
Set hdmi ddc pin HI-Z to save power. Change-Id: Ic5e15cac43c486e7de6be8526daea9b36da68bc8 Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
@@ -3119,6 +3119,7 @@ void dw_hdmi_suspend(struct device *dev)
|
||||
if (hdmi->irq)
|
||||
disable_irq(hdmi->irq);
|
||||
mutex_unlock(&hdmi->mutex);
|
||||
pinctrl_pm_select_sleep_state(dev);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(dw_hdmi_suspend);
|
||||
|
||||
@@ -3126,6 +3127,7 @@ void dw_hdmi_resume(struct device *dev)
|
||||
{
|
||||
struct dw_hdmi *hdmi = dev_get_drvdata(dev);
|
||||
|
||||
pinctrl_pm_select_default_state(dev);
|
||||
mutex_lock(&hdmi->mutex);
|
||||
dw_hdmi_reg_initial(hdmi);
|
||||
if (hdmi->i2c)
|
||||
|
||||
Reference in New Issue
Block a user