]> Gentwo Git Trees - linux/.git/commit
drm/i915/ddi: prefer poll_timeout_us() over readx_poll_timeout()
authorJani Nikula <jani.nikula@intel.com>
Thu, 28 Aug 2025 12:21:01 +0000 (15:21 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 4 Sep 2025 11:02:59 +0000 (14:02 +0300)
commit54846c2ea78e8a1ce61d2ef604f56f25783d855d
tree17c66dfc0c4502a2a1011fd0776493a0465e69d3
parentf1415900089f4cfbaa8eb992fb9186e5840f8c34
drm/i915/ddi: prefer poll_timeout_us() over readx_poll_timeout()

Unify on using poll_timeout_us() throughout instead of mixing with
readx_poll_timeout(). While the latter can be ever so slightly simpler,
they are both complicated enough that it's better to unify on one
approach only.

While at it, better separate the handling of error returns from
drm_dp_dpcd_readb() and the actual status byte. This is best achieved by
inlining the read_fec_detected_status() function, and switching to
drm_dp_dpcd_read_byte().

v2: Use drm_dp_dpcd_read_byte() (Imre)

Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://lore.kernel.org/r/63b10a36c7ab545c640b24bc8fc007ce2ea74623.1756383233.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_ddi.c