Skip to content

Commit 3d9e902

Browse files
almahallawyjlahtine-intel
authored andcommitted
drm/i915/dp: Fix passing the correct DPCD_REV for drm_dp_set_phy_test_pattern
Using link_status to get DPCD_REV fails when disabling/defaulting phy pattern. Use intel_dp->dpcd to access DPCD_REV correctly. Fixes: 8cdf727 ("drm/i915/dp: Program vswing, pre-emphasis, test-pattern") Cc: Jani Nikula <jani.nikula@intel.com> Cc: Imre Deak <imre.deak@intel.com> Cc: Lee Shawn C <shawn.c.lee@intel.com> Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20231213211542.3585105-3-khaled.almahallawy@intel.com (cherry picked from commit 3ee302e) Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
1 parent d505a16 commit 3d9e902

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/display/intel_dp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4764,7 +4764,7 @@ static void intel_dp_process_phy_request(struct intel_dp *intel_dp,
47644764
intel_dp->train_set, crtc_state->lane_count);
47654765

47664766
drm_dp_set_phy_test_pattern(&intel_dp->aux, data,
4767-
link_status[DP_DPCD_REV]);
4767+
intel_dp->dpcd[DP_DPCD_REV]);
47684768
}
47694769

47704770
static u8 intel_dp_autotest_phy_pattern(struct intel_dp *intel_dp)

0 commit comments

Comments
 (0)