mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
drm/i915/pps: prefer poll_timeout_us() over read_poll_timeout()
Unify on using poll_timeout_us() throughout instead of mixing with readx_poll_timeout(). Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://lore.kernel.org/r/260fd455df743453f123d96fc01e7ca96a36f0fa.1756383233.git.jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
54846c2ea7
commit
f7e60f1570
|
|
@ -627,11 +627,9 @@ static void wait_panel_status(struct intel_dp *intel_dp,
|
|||
intel_de_read(display, pp_stat_reg),
|
||||
intel_de_read(display, pp_ctrl_reg));
|
||||
|
||||
ret = read_poll_timeout(intel_de_read, val,
|
||||
(val & mask) == value,
|
||||
10 * 1000, 5000 * 1000, true,
|
||||
display, pp_stat_reg);
|
||||
|
||||
ret = poll_timeout_us(val = intel_de_read(display, pp_stat_reg),
|
||||
(val & mask) == value,
|
||||
10 * 1000, 5000 * 1000, true);
|
||||
if (ret) {
|
||||
drm_err(display->drm,
|
||||
"[ENCODER:%d:%s] %s panel status timeout: PP_STATUS: 0x%08x PP_CONTROL: 0x%08x\n",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user