Patch "drm/panel: sitronix-st7789v: Add check for of_drm_get_panel_orientation" has been added to the 6.9-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/panel: sitronix-st7789v: Add check for of_drm_get_panel_orientation

to the 6.9-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-panel-sitronix-st7789v-add-check-for-of_drm_get_.patch
and it can be found in the queue-6.9 subdirectory.

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



commit b348cfdab081896f35df7197ca74201dc9968f8d
Author: Chen Ni <nichen@xxxxxxxxxxx>
Date:   Tue May 28 11:08:32 2024 +0800

    drm/panel: sitronix-st7789v: Add check for of_drm_get_panel_orientation
    
    [ Upstream commit 629f2b4e05225e53125aaf7ff0b87d5d53897128 ]
    
    Add check for the return value of of_drm_get_panel_orientation() and
    return the error if it fails in order to catch the error.
    
    Fixes: b27c0f6d208d ("drm/panel: sitronix-st7789v: add panel orientation support")
    Signed-off-by: Chen Ni <nichen@xxxxxxxxxxx>
    Reviewed-by: Michael Riesch <michael.riesch@xxxxxxxxxxxxxx>
    Acked-by: Jessica Zhang <quic_jesszhan@xxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240528030832.2529471-1-nichen@xxxxxxxxxxx
    Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20240528030832.2529471-1-nichen@xxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c
index e8f385b9c6182..28bfc48a91272 100644
--- a/drivers/gpu/drm/panel/panel-sitronix-st7789v.c
+++ b/drivers/gpu/drm/panel/panel-sitronix-st7789v.c
@@ -643,7 +643,9 @@ static int st7789v_probe(struct spi_device *spi)
 	if (ret)
 		return dev_err_probe(dev, ret, "Failed to get backlight\n");
 
-	of_drm_get_panel_orientation(spi->dev.of_node, &ctx->orientation);
+	ret = of_drm_get_panel_orientation(spi->dev.of_node, &ctx->orientation);
+	if (ret)
+		return dev_err_probe(&spi->dev, ret, "Failed to get orientation\n");
 
 	drm_panel_add(&ctx->panel);
 




[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