drm/i915/dp: Optimize the FRL configuration for HDMI2.1 PCON
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Wed, 10 Nov 2021 07:29:46 +0000 (12:59 +0530)
committerUma Shankar <uma.shankar@intel.com>
Thu, 11 Nov 2021 09:15:08 +0000 (14:45 +0530)
commit078e2bb2585a05df787be74642f12354a66a0534
treede509c5ffaafc5986d0883686fdded3384b268f7
parent4579509ef181480f4e4510d436c691519167c5c2
drm/i915/dp: Optimize the FRL configuration for HDMI2.1 PCON

Currently the HDMI2.1 PCON's frl link config DPCD registers are
reset and configured even if they are already configured.
Also the HDMI Link Mode does not settle to FRL MODE immediately after
HDMI Link Status is active.

This patch:
-Checks if the PCON is already configured for FRL.
-Include HDMI Link Mode in wait for loop along with HDMI Link status DPCD.

v2: Rebase

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211110072947.171659-2-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c