]> Gentwo Git Trees - linux/.git/commit
drm/i915/power-well: use generic poll_timeout_us() instead of wait_for() for VLV/CHV
authorJani Nikula <jani.nikula@intel.com>
Thu, 28 Aug 2025 12:20:53 +0000 (15:20 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 4 Sep 2025 11:02:58 +0000 (14:02 +0300)
commite38e3c50a14c76bf130a688bffd130797b09dfe6
tree84eace2f6f9ff1f11b27a861e35ca2507fbf1bb3
parenta8eb4cdcedd836b22459b9f6e68b60001bd04bac
drm/i915/power-well: use generic poll_timeout_us() instead of wait_for() for VLV/CHV

Prefer generic poll helpers over i915 custom helpers.

The functional change is losing the exponentially growing sleep of
wait_for(), which used to be 10, 20, 40, ..., 640, and 1280 us.

Use an arbitrary constant 500 us sleep instead. The timeout remains at
100 ms.

Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://lore.kernel.org/r/c644b7b5611a3c047ea5d3d52acd91830b2fa6b4.1756383233.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_power_well.c