[RFC PATCH 06/13] drm/bridge: dw-hdmi: Export dw_hdmi_phy_enable_svsret()

Alastair D'Silva alastair at d-silva.org
Sun Nov 29 18:07:51 PST 2026


Export dw_hdmi_phy_enable_svsret() so platform glue drivers with custom
Synopsys Gen2 PHY setup sequences can release the PHY from low-power
retention mode before reset and I2C configuration.

Signed-off-by: Alastair D'Silva <alastair at d-silva.org>
---
 drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 3 ++-
 include/drm/bridge/dw_hdmi.h              | 2 ++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
index d63cd7a9f243..5a5c72f6e68e 100644
--- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
+++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
@@ -1446,12 +1446,13 @@ static void dw_hdmi_phy_enable_tmds(struct dw_hdmi *hdmi, u8 enable)
 			 HDMI_PHY_CONF0_ENTMDS_MASK);
 }
 
-static void dw_hdmi_phy_enable_svsret(struct dw_hdmi *hdmi, u8 enable)
+void dw_hdmi_phy_enable_svsret(struct dw_hdmi *hdmi, u8 enable)
 {
 	hdmi_mask_writeb(hdmi, enable, HDMI_PHY_CONF0,
 			 HDMI_PHY_CONF0_SVSRET_OFFSET,
 			 HDMI_PHY_CONF0_SVSRET_MASK);
 }
+EXPORT_SYMBOL_GPL(dw_hdmi_phy_enable_svsret);
 
 void dw_hdmi_phy_gen2_pddq(struct dw_hdmi *hdmi, u8 enable)
 {
diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h
index 8500dd4f99d8..484a909b9fbd 100644
--- a/include/drm/bridge/dw_hdmi.h
+++ b/include/drm/bridge/dw_hdmi.h
@@ -213,6 +213,8 @@ void dw_hdmi_phy_gen2_pddq(struct dw_hdmi *hdmi, u8 enable);
 void dw_hdmi_phy_gen2_txpwron(struct dw_hdmi *hdmi, u8 enable);
 void dw_hdmi_phy_gen2_reset(struct dw_hdmi *hdmi);
 
+void dw_hdmi_phy_enable_svsret(struct dw_hdmi *hdmi, u8 enable);
+
 enum drm_connector_status dw_hdmi_phy_read_hpd(struct dw_hdmi *hdmi,
 					       void *data);
 void dw_hdmi_phy_update_hpd(struct dw_hdmi *hdmi, void *data,
-- 
2.53.0




More information about the linux-arm-kernel mailing list