OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a5f3d6
)
drm/bridge: it66121: Wait for next bridge to be probed
author
Paul Cercueil
<paul@crapouillou.net>
Fri, 27 Aug 2021 16:39:56 +0000
(17:39 +0100)
committer
Robert Foss
<robert.foss@linaro.org>
Tue, 31 Aug 2021 14:12:52 +0000
(16:12 +0200)
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:
988156dc2fc9
("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
drivers/gpu/drm/bridge/ite-it66121.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bridge/ite-it66121.c
b/drivers/gpu/drm/bridge/ite-it66121.c
index
b130d01
..
9dc41a7
100644
(file)
--- a/
drivers/gpu/drm/bridge/ite-it66121.c
+++ b/
drivers/gpu/drm/bridge/ite-it66121.c
@@
-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);