drm/msm/dpu: use PINGPONG_NONE to unbind WB from PP
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 4 Jun 2023 03:13:08 +0000 (06:13 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 7 Jun 2023 23:08:23 +0000 (02:08 +0300)
commit0f86d9c980a3e4cc8b8ca604cfb5ac3537c3fba7
treedfe5f59be710fe30ae77be88ceae354faee6bf2f
parenta03b7c4698d78b2e4d0c06a439d01cce8a3823bc
drm/msm/dpu: use PINGPONG_NONE to unbind WB from PP

Currently the driver passes the PINGPONG index to
dpu_hw_wb_ops::bind_pingpong_blk() callback and uses separate boolean
flag to tell whether WB should be bound or unbound. Simplify this by
passing PINGPONG_NONE in case of unbinding and drop the flag completely.

Suggested-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Patchwork: https://patchwork.freedesktop.org/patch/540969/
Link: https://lore.kernel.org/r/20230604031308.894274-2-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c
drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.h