[PATCH v3 12/27] drm/msm/mdss: use new helper to set UBWC bank spreading

Dmitry Baryshkov
2026-03-12T13:29:53Z

Use freshly defined helper instead of hardcoding the checks in the
driver.

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
drivers/gpu/drm/msm/msm_mdss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/msm/msm_mdss.c b/drivers/gpu/drm/msm/msm_mdss.c
index 453be86c3420..76657a4a8f65 100644
--- a/drivers/gpu/drm/msm/msm_mdss.c
+++ b/drivers/gpu/drm/msm/msm_mdss.c
@@ -201,7 +201,7 @@ static void msm_mdss_6x_setup_ubwc(struct msm_mdss *msm_mdss)
MDSS_UBWC_STATIC_HIGHEST_BANK_BIT(data->highest_bank_bit - 13);
u32 prediction_mode;

- if (data->ubwc_bank_spread)
+ if (qcom_ubwc_bank_spread(data))
value |= MDSS_UBWC_STATIC_UBWC_BANK_SPREAD;

if (qcom_ubwc_macrotile_mode(data))

--
2.47.3