Browse Source

drm/bridge: cdns-mhdp: disable framer on bridge_disable

Disable the DP framer at bridge_disable.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Tomi Valkeinen 6 years ago
parent
commit
b0e98c1ccc
1 changed files with 5 additions and 0 deletions
  1. 5 0
      drivers/gpu/drm/bridge/cdns-mhdp.c

+ 5 - 0
drivers/gpu/drm/bridge/cdns-mhdp.c

@@ -744,6 +744,11 @@ static void cdns_mhdp_disable(struct drm_bridge *bridge)
 
 	cdns_mhdp_set_video_status(mhdp, 0);
 
+	cdns_mhdp_reg_read(mhdp, CDNS_DP_FRAMER_GLOBAL_CONFIG, &resp);
+	resp &= ~CDNS_DP_FRAMER_EN;
+	resp |= CDNS_DP_NO_VIDEO_MODE;
+	cdns_mhdp_reg_write(mhdp, CDNS_DP_FRAMER_GLOBAL_CONFIG, resp);
+
 	mhdp->link_up = false;
 
 	if (mhdp->plugged)