]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/tegra: dp: Enable alternate scrambler reset when supported
authorThierry Reding <treding@nvidia.com>
Tue, 7 Jul 2015 19:14:12 +0000 (21:14 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2019 10:18:52 +0000 (11:18 +0100)
If the sink is eDP and supports the alternate scrambler reset, enable
it.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dp.c

index ca287b50fad80a73a1a3046824f5dd8db17b36db..638081b568f4394e2156fd009098fedcc43feffe 100644 (file)
@@ -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;
 }