drm/bridge: it66121: Wait for next bridge to be probed
authorPaul Cercueil <paul@crapouillou.net>
Fri, 27 Aug 2021 16:39:56 +0000 (17:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:22 +0000 (19:16 +0100)
commit5f14a2c4648cb7001fd20de0cc0429bfcd92bf7e
tree7f6dfd27955efd31a2d9c10bef46db5246cd1edf
parent3c1ccfcae8a962d1c11a1e4a55feb08f8733e311
drm/bridge: it66121: Wait for next bridge to be probed

[ Upstream commit 8b03e3fc79189b17d31a82f5e175698802a11e87 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/ite-it66121.c