[PATCH] drm/rockchip: dw-mipi-dsi2: add sentinel to rk3588_chip_data table

From: Renjun Wang

Date: Wed Apr 15 2026 - 10:06:13 EST


The while loop walks rockchip_dw_dsi2_chip_data entries until reg
is zero in function dw_mipi_dsi2_rockchip_probe(), so rk3588 needs
the same sentinel termination as rk3576 to avoid reading past the
end of the array.

Signed-off-by: Renjun Wang <renjunw0@xxxxxxxxxxx>
---
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
index 0aea764e29b2..8fd4653520df 100644
--- a/drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
+++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c
@@ -483,7 +483,8 @@ static const struct rockchip_dw_dsi2_chip_data rk3588_chip_data[] = {
.reg = 0xfde30000,
.grf_regs = rk3588_dsi1_grf_reg_fields,
.max_bit_rate_per_lane = 4500000ULL,
- }
+ },
+ { /* sentinel */ }
};

static const struct of_device_id dw_mipi_dsi2_rockchip_dt_ids[] = {
--
2.47.3