Patch "drm/mediatek: mtk_dsi: Reset the dsi0 hardware" has been added to the 5.15-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/mediatek: mtk_dsi: Reset the dsi0 hardware

to the 5.15-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-mediatek-mtk_dsi-reset-the-dsi0-hardware.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 0b673f13350208b4d5a98cb41ab106975cbfaa4f
Author: Enric Balletbo i Serra <enric.balletbo@xxxxxxxxxxxxx>
Date:   Thu Sep 30 10:31:50 2021 +0200

    drm/mediatek: mtk_dsi: Reset the dsi0 hardware
    
    [ Upstream commit 605c83753d97946aab176735020a33ebfb0b4615 ]
    
    Reset dsi0 HW to default when power on. This prevents to have different
    settingis between the bootloader and the kernel.
    
    As not all Mediatek boards have the reset consumer configured in their
    board description, also is not needed on all of them, the reset is optional,
    so the change is compatible with all boards.
    
    Cc: Jitao Shi <jitao.shi@xxxxxxxxxxxx>
    Suggested-by: Chun-Kuang Hu <chunkuang.hu@xxxxxxxxxx>
    Signed-off-by: Enric Balletbo i Serra <enric.balletbo@xxxxxxxxxxxxx>
    Acked-by: Chun-Kuang Hu <chunkuang.hu@xxxxxxxxxx>
    Reviewed-by: Matthias Brugger <matthias.bgg@xxxxxxxxx>
    Link: https://lore.kernel.org/r/20210930103105.v4.7.Idbb4727ddf00ba2fe796b630906baff10d994d89@changeid
    Signed-off-by: Matthias Brugger <matthias.bgg@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c
index 93b40c245f007..5d90d2eb00193 100644
--- a/drivers/gpu/drm/mediatek/mtk_dsi.c
+++ b/drivers/gpu/drm/mediatek/mtk_dsi.c
@@ -11,6 +11,7 @@
 #include <linux/of_platform.h>
 #include <linux/phy/phy.h>
 #include <linux/platform_device.h>
+#include <linux/reset.h>
 
 #include <video/mipi_display.h>
 #include <video/videomode.h>
@@ -980,8 +981,10 @@ static int mtk_dsi_bind(struct device *dev, struct device *master, void *data)
 	struct mtk_dsi *dsi = dev_get_drvdata(dev);
 
 	ret = mtk_dsi_encoder_init(drm, dsi);
+	if (ret)
+		return ret;
 
-	return ret;
+	return device_reset_optional(dev);
 }
 
 static void mtk_dsi_unbind(struct device *dev, struct device *master,



[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