From: Thierry Reding Date: Thu, 5 Jun 2014 14:29:46 +0000 (+0200) Subject: drm/tegra: sor - Enable only the necessary number of lanes X-Git-Tag: MMI-PSA29.97-13-9~12080^2~9^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c90a184664abf657e3849f7e47e2e7fd1d93910;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/tegra: sor - Enable only the necessary number of lanes Instead of always enabling all four lanes, enable only the number probed from the link. Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index fefd26f0c751..7d2a5db72365 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -656,7 +656,7 @@ static int tegra_output_sor_enable(struct tegra_output *output) value = tegra_sor_readl(sor, SOR_DP_LINKCTL_0); value &= ~SOR_DP_LINKCTL_LANE_COUNT_MASK; - value |= SOR_DP_LINKCTL_LANE_COUNT(4); + value |= SOR_DP_LINKCTL_LANE_COUNT(link.num_lanes); tegra_sor_writel(sor, value, SOR_DP_LINKCTL_0); /* start lane sequencer */