From: Thierry Reding Date: Tue, 7 Jul 2015 19:14:12 +0000 (+0200) Subject: drm/tegra: dp: Enable alternate scrambler reset when supported X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c4a27288520d35e7e6acc6e36fba4585e1bddde6;p=linux.git drm/tegra: dp: Enable alternate scrambler reset when supported If the sink is eDP and supports the alternate scrambler reset, enable it. Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/dp.c b/drivers/gpu/drm/tegra/dp.c index ca287b50fad80..638081b568f43 100644 --- a/drivers/gpu/drm/tegra/dp.c +++ b/drivers/gpu/drm/tegra/dp.c @@ -225,5 +225,12 @@ int drm_dp_link_configure(struct drm_dp_aux *aux, struct drm_dp_link *link) if (err < 0) return err; + if (link->caps.alternate_scrambler_reset) { + err = drm_dp_dpcd_writeb(aux, DP_EDP_CONFIGURATION_SET, + DP_ALTERNATE_SCRAMBLER_RESET_ENABLE); + if (err < 0) + return err; + } + return 0; }