mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/msm/dpu: fix the irq index in dpu_encoder_phys_wb_wait_for_commit_done
[ Upstream commitd93cf453f5] Since commit1e7ac595fa("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:d7d0e73f7d("drm/msm/dpu: introduce the dpu_encoder_phys_* for writeback") Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/550924/ Link: https://lore.kernel.org/r/20230802100426.4184892-2-dmitry.baryshkov@linaro.org Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bd3a6b6d5d
commit
d1994bb594
@@ -460,7 +460,8 @@ static int dpu_encoder_phys_wb_wait_for_commit_done(
|
|||||||
wait_info.atomic_cnt = &phys_enc->pending_kickoff_cnt;
|
wait_info.atomic_cnt = &phys_enc->pending_kickoff_cnt;
|
||||||
wait_info.timeout_ms = KICKOFF_TIMEOUT_MS;
|
wait_info.timeout_ms = KICKOFF_TIMEOUT_MS;
|
||||||
|
|
||||||
ret = dpu_encoder_helper_wait_for_irq(phys_enc, INTR_IDX_WB_DONE,
|
ret = dpu_encoder_helper_wait_for_irq(phys_enc,
|
||||||
|
phys_enc->irq[INTR_IDX_WB_DONE],
|
||||||
dpu_encoder_phys_wb_done_irq, &wait_info);
|
dpu_encoder_phys_wb_done_irq, &wait_info);
|
||||||
if (ret == -ETIMEDOUT)
|
if (ret == -ETIMEDOUT)
|
||||||
_dpu_encoder_phys_wb_handle_wbdone_timeout(phys_enc);
|
_dpu_encoder_phys_wb_handle_wbdone_timeout(phys_enc);
|
||||||
|
|||||||
Reference in New Issue
Block a user