From 495a7777d60a0623369ce4e1173510fa2a9dedc2 Mon Sep 17 00:00:00 2001 From: Algea Cao Date: Thu, 28 Sep 2017 17:17:59 +0800 Subject: [PATCH] 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 --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index f17b47d8a430..60da4b7ae9d1 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -18,6 +18,7 @@ #include #include #include +#include #include @@ -3534,11 +3535,13 @@ void dw_hdmi_suspend(struct dw_hdmi *hdmi) if (hdmi->irq) disable_irq(hdmi->irq); mutex_unlock(&hdmi->mutex); + pinctrl_pm_select_sleep_state(hdmi->dev); } EXPORT_SYMBOL_GPL(dw_hdmi_suspend); void dw_hdmi_resume(struct dw_hdmi *hdmi) { + pinctrl_pm_select_default_state(hdmi->dev); mutex_lock(&hdmi->mutex); dw_hdmi_reg_initial(hdmi); if (hdmi->irq)