Skip to content

Commit d93cf45

Browse files
committed
drm/msm/dpu: fix the irq index in dpu_encoder_phys_wb_wait_for_commit_done
Since commit 1e7ac59 ("drm/msm/dpu: pass irq to dpu_encoder_helper_wait_for_irq()") the dpu_encoder_phys_wb_wait_for_commit_done expects the IRQ index rather than the IRQ index in phys_enc->intr table, however writeback got the older invocation in place. This was unnoticed for several releases, but now it's time to fix it. Fixes: d7d0e73 ("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback") Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/550924/ Link: https://lore.kernel.org/r/[email protected]
1 parent 34202be commit d93cf45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@ static int dpu_encoder_phys_wb_wait_for_commit_done(
446446
wait_info.atomic_cnt = &phys_enc->pending_kickoff_cnt;
447447
wait_info.timeout_ms = KICKOFF_TIMEOUT_MS;
448448

449-
ret = dpu_encoder_helper_wait_for_irq(phys_enc, INTR_IDX_WB_DONE,
449+
ret = dpu_encoder_helper_wait_for_irq(phys_enc,
450+
phys_enc->irq[INTR_IDX_WB_DONE],
450451
dpu_encoder_phys_wb_done_irq, &wait_info);
451452
if (ret == -ETIMEDOUT)
452453
_dpu_encoder_phys_wb_handle_wbdone_timeout(phys_enc);

0 commit comments

Comments
 (0)