With bridge hotplug support, when a bridge attach func returns -EPROBE_DEFER it means the following bridge is not yet connected, but it could be later on. In this case don't fail the entire attach operation, so the card can probe (without a connector) and be ready to handle a future hotplug that completes the pipeline.
Signed-off-by: Luca Ceresoli <[email protected]> --- drivers/gpu/drm/drm_bridge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index 2b539c9749a6..05702ece77c9 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -593,7 +593,7 @@ int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge, if (bridge->funcs->attach) { ret = bridge->funcs->attach(bridge, encoder, flags); - if (ret < 0) + if (ret < 0 && ret != -EPROBE_DEFER) goto err_reset_bridge; } -- 2.54.0
