[PATCH 03/32] drm/bridge: nwl-dsi: remove redundant lanes number check
Luca Ceresoli
luca.ceresoli at bootlin.com
Wed Jun 25 16:45:07 UTC 2025
Checking that the number of lanes is > 0 is now done by the DRM MIPI DSI
core in mipi_dsi_attach().
Signed-off-by: Luca Ceresoli <luca.ceresoli at bootlin.com>
---
drivers/gpu/drm/bridge/nwl-dsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c
index 2f7429b24fc20db104dec17182f1119c6c75e600..ccce663192b35a795dad8cb479203d05b414173b 100644
--- a/drivers/gpu/drm/bridge/nwl-dsi.c
+++ b/drivers/gpu/drm/bridge/nwl-dsi.c
@@ -352,7 +352,7 @@ static int nwl_dsi_host_attach(struct mipi_dsi_host *dsi_host,
DRM_DEV_INFO(dev, "lanes=%u, format=0x%x flags=0x%lx\n", device->lanes,
device->format, device->mode_flags);
- if (device->lanes < 1 || device->lanes > 4)
+ if (device->lanes > 4)
return -EINVAL;
dsi->lanes = device->lanes;
--
2.49.0
More information about the dri-devel
mailing list