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

Commit 0c90a184 authored by Thierry Reding's avatar Thierry Reding
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
parent 899451b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */