Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e397da0e authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/dp: do not read SET_POWER register during link power up"

parents eb298ddf 9ca37ee9
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -358,20 +358,13 @@ EXPORT_SYMBOL(drm_dp_link_probe);
 */
int drm_dp_link_power_up(struct drm_dp_aux *aux, struct drm_dp_link *link)
{
	u8 value;
	u8 value = DP_SET_POWER_D0;
	int err;

	/* DP_SET_POWER register is only available on DPCD v1.1 and later */
	if (link->revision < 0x11)
		return 0;

	err = drm_dp_dpcd_readb(aux, DP_SET_POWER, &value);
	if (err < 0)
		return err;

	value &= ~DP_SET_POWER_MASK;
	value |= DP_SET_POWER_D0;

	err = drm_dp_dpcd_writeb(aux, DP_SET_POWER, value);
	if (err < 0)
		return err;