[PATCH 04/32] drm/mcde: remove redundant lanes number check
Luca Ceresoli
luca.ceresoli at bootlin.com
Wed Jun 25 16:45:08 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/mcde/mcde_dsi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/mcde/mcde_dsi.c b/drivers/gpu/drm/mcde/mcde_dsi.c
index a3423459dd7ac8395b77d0479a02ebb3a9ba259c..8e3b9c9c64e99239e54ba5a338cf3bbb6c84b40f 100644
--- a/drivers/gpu/drm/mcde/mcde_dsi.c
+++ b/drivers/gpu/drm/mcde/mcde_dsi.c
@@ -172,7 +172,7 @@ static int mcde_dsi_host_attach(struct mipi_dsi_host *host,
{
struct mcde_dsi *d = host_to_mcde_dsi(host);
- if (mdsi->lanes < 1 || mdsi->lanes > 2) {
+ if (mdsi->lanes > 2) {
DRM_ERROR("dsi device params invalid, 1 or 2 lanes supported\n");
return -EINVAL;
}
--
2.49.0
More information about the dri-devel
mailing list