Browse Source

drm/bridge: cdns-mhdp: Remove setting register DP_SET_POWER twice.

Function cdns_mhdp_link_up() configures register DP_SET_POWER. It also
calls drm_dp_link_power_up() which internally configures the same
register. So remove setting DP_SET_POWER explicitly from function
cdns_mhdp_link_up().

Signed-off-by: Swapnil Jakhade <sjakhade@cadence.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Swapnil Jakhade 6 years ago
parent
commit
9a38a42e64
1 changed files with 0 additions and 6 deletions
  1. 0 6
      drivers/gpu/drm/bridge/cdns-mhdp.c

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

@@ -1578,12 +1578,6 @@ static int cdns_mhdp_link_up(struct cdns_mhdp_device *mhdp)
 	u32 resp;
 	u8 reg0[DP_RECEIVER_CAP_SIZE], amp[2];
 
-	/*
-	 * Upon power-on reset/device disconnection: [2:0] bits should be 0b001
-	 * and [7:5] bits 0b000.
-	 */
-	drm_dp_dpcd_writeb(&mhdp->aux, DP_SET_POWER, 1);
-
 	drm_dp_link_probe(&mhdp->aux, &mhdp->link);
 
 	dev_dbg(mhdp->dev, "Set sink device power state via DPCD\n");