Skip to content

Commit

Permalink
drm/tegra: sor - Enable only the necessary number of lanes
Browse files Browse the repository at this point in the history
Instead of always enabling all four lanes, enable only the number probed
from the link.

Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Thierry Reding committed Jun 9, 2014
1 parent 899451b commit 0c90a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tegra/sor.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 0c90a18

Please sign in to comment.