]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/dp: Add a meaningful return to intel_dp_read_dsc_dpcd
authorSuraj Kandpal <suraj.kandpal@intel.com>
Mon, 2 Feb 2026 08:18:02 +0000 (13:48 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Tue, 3 Feb 2026 02:26:09 +0000 (07:56 +0530)
commitc766952016f2a42d0711260f2f56bdec17786cb7
tree8da29abaf9e52c912bb465683c35fd9bbc482b3f
parentc0dc68f4e2aa7eddb9ec6d95931f9576d8fe7334
drm/i915/dp: Add a meaningful return to intel_dp_read_dsc_dpcd

Add a meaningful return to intel_dp_read_dsc_dpcd. This is to avoid
unwanted DPCD reads which are not needed once we know DSC DPCD
read fails. To do this convert drm_dp_dpcd_read to drm_dp_dpcd_read_data
which returns a meaningful error which can be propogated up when all
bits are not read.
While we are at it convert the drm_err in intel_dp_read_dsc_dpcd to
drm_dbg_kms. This is because we do not want a hard ERROR when we
call this function, during the intel_dp_detect phase since AUX may not
be up, it is expected to fail but we do not expect a failure in read
when we call intel_dp_dsc_get_sink_cap so we move the drm_err there.

Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patch.msgid.link/20260202081801.1400708-1-suraj.kandpal@intel.com
drivers/gpu/drm/i915/display/intel_dp.c