Skip to content

Commit 2693329

Browse files
qinwnentaorobertfoss
authored andcommitted
drm/bridge: anx7625: Return -EPROBE_DEFER if the dsi host was not found
It will connect to the mipi dsi host and find the corresponding mipi dsi host node, but the node registered by the mipi dsi host has not been loaded yet. of_find_mipi_dsi_host_by_node() returns -EINVAL which causes the calling driver to fail. If the anx7625 driver is loaded afterwards the driver requesting the mipi dsi host will not notice this. Better approach is to return -EPROBE_DEFER in such case. Then when the anx7625 driver appears the driver requesting the mipi dsi host will be probed again. Signed-off-by: owen <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Robert Foss <[email protected]>
1 parent 032a125 commit 2693329

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/bridge/analogix/anx7625.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ static int anx7625_attach_dsi(struct anx7625_data *ctx)
19171917
host = of_find_mipi_dsi_host_by_node(ctx->pdata.mipi_host_node);
19181918
if (!host) {
19191919
DRM_DEV_ERROR(dev, "fail to find dsi host.\n");
1920-
return -EINVAL;
1920+
return -EPROBE_DEFER;
19211921
}
19221922

19231923
dsi = devm_mipi_dsi_device_register_full(dev, host, &info);

0 commit comments

Comments
 (0)