Skip to content

Commit 0a874dc

Browse files
Aradhya BhatiaSasha Levin
authored andcommitted
drm/bridge: cdns-dsi: Fix connecting to next bridge
commit 688eb4d upstream. Fix the OF node pointer passed to the of_drm_find_bridge() call to find the next bridge in the display chain. The code to find the next panel (and create its panel-bridge) works fine, but to find the next (non-panel) bridge does not. To find the next bridge in the pipeline, we need to pass "np" - the OF node pointer of the next entity in the devicetree chain. Passing "of_node" to of_drm_find_bridge (which is what the code does currently) will fetch the bridge for the cdns-dsi which is not what's required. Fix that. Fixes: e192339 ("drm/bridge: Add Cadence DSI driver") Cc: [email protected] Reviewed-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Tested-by: Tomi Valkeinen <[email protected]> Signed-off-by: Aradhya Bhatia <[email protected]> Signed-off-by: Aradhya Bhatia <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bec6d72 commit 0a874dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/bridge/cdns-dsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ static int cdns_dsi_attach(struct mipi_dsi_host *host,
992992
bridge = drm_panel_bridge_add_typed(panel,
993993
DRM_MODE_CONNECTOR_DSI);
994994
} else {
995-
bridge = of_drm_find_bridge(dev->dev.of_node);
995+
bridge = of_drm_find_bridge(np);
996996
if (!bridge)
997997
bridge = ERR_PTR(-EINVAL);
998998
}

0 commit comments

Comments
 (0)