Patch "drm/bridge: tc358767: Handle dsi_lanes == 0 as invalid" has been added to the 5.19-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: tc358767: Handle dsi_lanes == 0 as invalid

to the 5.19-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-tc358767-handle-dsi_lanes-0-as-invalid.patch
and it can be found in the queue-5.19 subdirectory.

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



commit e57baae19f8265324ff277dbbba6e40e983e1f1a
Author: Marek Vasut <marex@xxxxxxx>
Date:   Thu May 19 11:51:36 2022 +0200

    drm/bridge: tc358767: Handle dsi_lanes == 0 as invalid
    
    [ Upstream commit 0d662350928e6787d29ab205e47e5aa6f1f792f9 ]
    
    Handle empty data-lanes = < >; property, which translates to
    dsi_lanes = 0 as invalid.
    
    Reviewed-by: Andrzej Hajda <andrzej.hajda@xxxxxxxxx>
    Reviewed-by: Lucas Stach <l.stach@xxxxxxxxxxxxxx>
    Fixes: bbfd3190b6562 ("drm/bridge: tc358767: Add DSI-to-DPI mode support")
    Signed-off-by: Marek Vasut <marex@xxxxxxx>
    Cc: Jonas Karlman <jonas@xxxxxxxxx>
    Cc: Laurent Pinchart <Laurent.pinchart@xxxxxxxxxxxxxxxx>
    Cc: Lucas Stach <l.stach@xxxxxxxxxxxxxx>
    Cc: Marek Vasut <marex@xxxxxxx>
    Cc: Maxime Ripard <maxime@xxxxxxxxxx>
    Cc: Neil Armstrong <narmstrong@xxxxxxxxxxxx>
    Cc: Robert Foss <robert.foss@xxxxxxxxxx>
    Cc: Sam Ravnborg <sam@xxxxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220519095137.11896-1-marex@xxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c
index 485717c8f0b4..466b8fc9836a 100644
--- a/drivers/gpu/drm/bridge/tc358767.c
+++ b/drivers/gpu/drm/bridge/tc358767.c
@@ -1871,7 +1871,7 @@ static int tc_mipi_dsi_host_attach(struct tc_data *tc)
 	of_node_put(host_node);
 	of_node_put(endpoint);
 
-	if (dsi_lanes < 0 || dsi_lanes > 4)
+	if (dsi_lanes <= 0 || dsi_lanes > 4)
 		return -EINVAL;
 
 	if (!host)



[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