On 1/14/26 10:32 AM, Geert Uytterhoeven wrote:
Hello Geert,
+++ b/drivers/gpu/drm/bridge/waveshare-dsi.c
@@ -66,7 +66,11 @@ static int ws_bridge_attach_dsi(struct ws_bridge *ws)
dsi->mode_flags = MIPI_DSI_MODE_VIDEO_HSE | MIPI_DSI_MODE_VIDEO |
MIPI_DSI_CLOCK_NON_CONTINUOUS;
dsi->format = MIPI_DSI_FMT_RGB888;
- dsi->lanes = 2;
+ dsi->lanes = drm_of_get_data_lanes_count_ep(dev->of_node, 0, 0, 1, 4);
+ if (dsi->lanes < 0) {
+ dev_warn(dev, "Invalid DSI lane count %d, falling back to 2
lanes\n", dsi->lanes);
"Invalid or missing"?
Fixed in V2
BTW, I doubt the kerneldoc for drm_of_get_data_lanes_count_ep()
is correct:
Nice find, fixed in
[PATCH] drm: of: Fix drm_of_get_data_lanes_count_ep() return value
documentation
Thanks !