mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
drm/bridge: it66121: Wait for next bridge to be probed
[ Upstream commit8b03e3fc79] 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: Paul Cercueil <paul@crapouillou.net> Fixes:988156dc2f("drm: bridge: add it66121 driver") Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Robert Foss <robert.foss@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20210827163956.27517-2-paul@crapouillou.net Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3c1ccfcae8
commit
5f14a2c464
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user