]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/dp: Dump the LTTPR PHY descriptors
authorImre Deak <imre.deak@intel.com>
Mon, 9 Sep 2024 13:56:27 +0000 (16:56 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 11 Sep 2024 08:48:05 +0000 (11:48 +0300)
Dump the descriptor of the detected LTTPRs in non-transparent mode to
help the debugging related to LTTPRs easier.

v2: Use drm_dp_dump_lttpr_desc() instead of the driver specific
    equivalent.
v3: Add empty line between license and header section. (Ankit)
v4: Don't include drm_dp_helper.h twice. (Jani)

Cc: Jani Nikula <jani.nikula@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> # v1
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240909135627.2926906-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_dp_link_training.c

index f45797c1a205126802d2f841c5e91cd02cfa5acc..abe7b9c035d20b49d46e8753cb54ecc2a28cf35e 100644 (file)
@@ -210,8 +210,10 @@ static int intel_dp_init_lttpr(struct intel_dp *intel_dp, const u8 dpcd[DP_RECEI
 
        lttpr_count = intel_dp_init_lttpr_phys(intel_dp, dpcd);
 
-       for (i = 0; i < lttpr_count; i++)
+       for (i = 0; i < lttpr_count; i++) {
                intel_dp_read_lttpr_phy_caps(intel_dp, dpcd, DP_PHY_LTTPR(i));
+               drm_dp_dump_lttpr_desc(&intel_dp->aux, DP_PHY_LTTPR(i));
+       }
 
        return lttpr_count;
 }