OSDN Git Service

drm/i915/hdmi: Go for scrambling only if platform supports TMDS clock > 340MHz
authorAnkit Nautiyal <ankit.k.nautiyal@intel.com>
Thu, 22 Dec 2022 04:08:51 +0000 (09:38 +0530)
committerUma Shankar <uma.shankar@intel.com>
Tue, 31 Jan 2023 06:36:25 +0000 (12:06 +0530)
commit9c608cf39b96666ecbc163e3f6197f6d8ea78e56
tree308cf15f49629d72598dcc3d887a6295925155bf
parent3c4b33d0e67ddb900efa7a0eabd33a667c699ff9
drm/i915/hdmi: Go for scrambling only if platform supports TMDS clock > 340MHz

There are cases, where devices have an HDMI1.4 retimer, and TMDS clock rate
is capped to 340MHz via VBT. In such cases scrambling might be supported
by the platform and an HDMI2.0 sink for lower TMDS rates, but not
supported by the retimer, causing blankouts.

So avoid enabling scrambling, if the TMDS clock is capped to <= 340MHz.

v2: Added comment, documenting the rationale to check for TMDS clock,
before going for scrambling. (Arun)

v3: Fixed the function name to check if source supports scrambling. (Jani)

Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Reviewed-by: Arun R Murthy <arun.r.murthy@intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221222040851.3029514-1-ankit.k.nautiyal@intel.com
drivers/gpu/drm/i915/display/intel_hdmi.c