Completely remove the remaining custom i915_utils.h wait macro usage from display code, and unify on the kernel generic poll_timeout_us() poll waiter. Also convert existing read_poll_timeout() and readx_poll_timeout() to poll_timeout_us().
This is a rewrite of [1] switching to the new poll_timeout_us() instead of read_poll_timeout(). The main functional change is losing the exponentially growing sleep from the custom macros. This is highlighted in each commit message with details. BR, Jani. [1] https://lore.kernel.org/r/cover.1751023767.git.jani.nik...@intel.com Jani Nikula (20): drm/i915/hdmi: use generic poll_timeout_us() instead of __wait_for() drm/i915/hdcp: use generic poll_timeout_us() instead of __wait_for() drm/i915/hdcp: use generic poll_timeout_us() instead of wait_for() drm/i915/dsi: use generic poll_timeout_us() instead of wait_for_us() drm/i915/dsi-pll: use generic poll_timeout_us() instead of wait_for() drm/i915/gmbus: use generic poll_timeout*() instead of wait_for*() drm/i915/wm: use generic poll_timeout_us() instead of wait_for() drm/i915/cdclk: use generic poll_timeout_us() instead of wait_for() drm/i915/power: use generic poll_timeout_us() instead of wait_for() drm/i915/power-well: use generic poll_timeout_us() instead of wait_for() for DKL PHY drm/i915/power-well: use generic poll_timeout_us() instead of wait_for() for VLV/CHV drm/i915/dp: use generic poll_timeout_us() instead of wait_for() drm/i915/dp: use generic poll_timeout_us() instead of wait_for() in link training drm/i915/vblank: use generic poll_timeout_us() instead of wait_for() drm/i915/tc: use generic poll_timeout_us() instead of wait_for() drm/i915/dsb: use generic poll_timeout_us() instead of wait_for() drm/i915/lspcon: use generic poll_timeout_us() instead of wait_for() drm/i915/opregion: use generic poll_timeout_us() instead of wait_for() drm/i915/ddi: prefer poll_timeout_us() over readx_poll_timeout() drm/i915/pps: prefer poll_timeout_us() over read_poll_timeout() drivers/gpu/drm/i915/display/i9xx_wm.c | 16 +++++-- drivers/gpu/drm/i915/display/icl_dsi.c | 18 ++++++-- drivers/gpu/drm/i915/display/intel_cdclk.c | 37 ++++++++-------- drivers/gpu/drm/i915/display/intel_ddi.c | 32 +++++--------- .../drm/i915/display/intel_display_power.c | 7 +++- .../i915/display/intel_display_power_well.c | 42 +++++++++++-------- drivers/gpu/drm/i915/display/intel_dp.c | 21 +++++----- .../drm/i915/display/intel_dp_link_training.c | 17 ++++++-- drivers/gpu/drm/i915/display/intel_dsb.c | 10 ++++- drivers/gpu/drm/i915/display/intel_gmbus.c | 13 +++--- drivers/gpu/drm/i915/display/intel_hdcp.c | 25 ++++++----- drivers/gpu/drm/i915/display/intel_hdmi.c | 10 ++--- drivers/gpu/drm/i915/display/intel_lspcon.c | 13 ++++-- drivers/gpu/drm/i915/display/intel_opregion.c | 10 +++-- drivers/gpu/drm/i915/display/intel_pps.c | 8 ++-- drivers/gpu/drm/i915/display/intel_tc.c | 16 ++++++- drivers/gpu/drm/i915/display/intel_vblank.c | 9 +++- drivers/gpu/drm/i915/display/vlv_dsi_pll.c | 11 +++-- 18 files changed, 193 insertions(+), 122 deletions(-) -- 2.47.2