未验证 提交 8b03e3fc 编写于 作者: P Paul Cercueil 提交者: Robert Foss

drm/bridge: it66121: Wait for next bridge to be probed

If run before the next bridge is initialized, of_drm_find_bridge() will
give us a NULL pointer.

If that's the case, return -EPROBE_DEFER; we may have more luck next
time.
Signed-off-by: NPaul Cercueil <paul@crapouillou.net>
Fixes: 988156dc ("drm: bridge: add it66121 driver")
Reviewed-by: NNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: NRobert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210827163956.27517-2-paul@crapouillou.net
上级 3a5f3d61
......@@ -924,6 +924,9 @@ static int it66121_probe(struct i2c_client *client,
ctx->next_bridge = of_drm_find_bridge(ep);
of_node_put(ep);
if (!ctx->next_bridge)
return -EPROBE_DEFER;
i2c_set_clientdata(client, ctx);
mutex_init(&ctx->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册