Patch "drm/bridge: it66121: Wait for next bridge to be probed" has been added to the 5.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

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

to the 5.14-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-bridge-it66121-wait-for-next-bridge-to-be-probed.patch
and it can be found in the queue-5.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit e6901f63dd0052f8084587ced63ce95b43951001
Author: Paul Cercueil <paul@xxxxxxxxxxxxxxx>
Date:   Fri Aug 27 17:39:56 2021 +0100

    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@xxxxxxxxxxxxxxx>
    Fixes: 988156dc2fc9 ("drm: bridge: add it66121 driver")
    Reviewed-by: Neil Armstrong <narmstrong@xxxxxxxxxxxx>
    Signed-off-by: Robert Foss <robert.foss@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20210827163956.27517-2-paul@xxxxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
index b130d01147c6c..9dc41a7b91362 100644
--- 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);
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux