Patch "drm: renesas: shmobile: Call drm_atomic_helper_shutdown() at shutdown time" 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: renesas: shmobile: Call drm_atomic_helper_shutdown() at shutdown time

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-renesas-shmobile-call-drm_atomic_helper_shutdown.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 4c312809f11ee5b75f767756642f594223f8e5c6
Author: Douglas Anderson <dianders@xxxxxxxxxxxx>
Date:   Wed Jun 12 09:23:13 2024 +0200

    drm: renesas: shmobile: Call drm_atomic_helper_shutdown() at shutdown time
    
    [ Upstream commit 0320ca14c6fb68ad19aa72e55a1a21c061b2946b ]
    
    Based on grepping through the source code, this driver appears to be
    missing a call to drm_atomic_helper_shutdown() at system shutdown time.
    This is important because drm_atomic_helper_shutdown() will cause
    panels to get disabled cleanly which may be important for their power
    sequencing.  Future changes will remove any custom powering off in
    individual panel drivers so the DRM drivers need to start getting this
    right.
    
    The fact that we should call drm_atomic_helper_shutdown() in the case of
    OS shutdown comes straight out of the kernel doc "driver instance
    overview" in drm_drv.c.
    
    [geert: shmob_drm_remove() already calls drm_atomic_helper_shutdown]
    
    Suggested-by: Maxime Ripard <mripard@xxxxxxxxxx>
    Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230901164111.RFT.15.Iaf638a1d4c8b3c307a6192efabb4cbb06b195f15@changeid
    [geert: s/drm_helper_force_disable_all/drm_atomic_helper_shutdown/]
    Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
    Reviewed-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
    Reviewed-by: Sui Jingfeng <sui.jingfeng@xxxxxxxxx>
    Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/17c6a5a668e5975f871b77fb1fca6711a0799d9e.1718176895.git.geert+renesas@xxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c
index e83c3e52251de..0250d5f00bf10 100644
--- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c
+++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_drv.c
@@ -171,6 +171,13 @@ static void shmob_drm_remove(struct platform_device *pdev)
 	drm_kms_helper_poll_fini(ddev);
 }
 
+static void shmob_drm_shutdown(struct platform_device *pdev)
+{
+	struct shmob_drm_device *sdev = platform_get_drvdata(pdev);
+
+	drm_atomic_helper_shutdown(&sdev->ddev);
+}
+
 static int shmob_drm_probe(struct platform_device *pdev)
 {
 	struct shmob_drm_platform_data *pdata = pdev->dev.platform_data;
@@ -273,6 +280,7 @@ static const struct of_device_id shmob_drm_of_table[] __maybe_unused = {
 static struct platform_driver shmob_drm_platform_driver = {
 	.probe		= shmob_drm_probe,
 	.remove_new	= shmob_drm_remove,
+	.shutdown	= shmob_drm_shutdown,
 	.driver		= {
 		.name	= "shmob-drm",
 		.of_match_table = of_match_ptr(shmob_drm_of_table),




[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