]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2024 08:06:58 +0000 (09:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2024 08:06:58 +0000 (09:06 +0100)
added patches:
revert-drm-mipi-dsi-set-the-fwnode-for-mipi_dsi_device.patch

queue-5.10/revert-drm-mipi-dsi-set-the-fwnode-for-mipi_dsi_device.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/revert-drm-mipi-dsi-set-the-fwnode-for-mipi_dsi_device.patch b/queue-5.10/revert-drm-mipi-dsi-set-the-fwnode-for-mipi_dsi_device.patch
new file mode 100644 (file)
index 0000000..951877d
--- /dev/null
@@ -0,0 +1,50 @@
+From devnull+jason-jh.lin.mediatek.com@kernel.org  Wed Nov  6 09:04:26 2024
+From: "Jason-JH.Lin via B4 Relay" <devnull+jason-jh.lin.mediatek.com@kernel.org>
+Date: Tue, 29 Oct 2024 09:24:53 +0800
+Subject: Revert "drm/mipi-dsi: Set the fwnode for mipi_dsi_device"
+To: stable@vger.kernel.org, Saravana Kannan <saravanak@google.com>,  Greg KH <gregkh@linuxfoundation.org>
+Cc: Seiya Wang <seiya.wang@mediatek.com>,  "Jason-JH.Lin" <jason-jh.lin@mediatek.com>,  Singo Chang <singo.chang@mediatek.com>
+Message-ID: <20241029-fixup-5-15-v4-1-a61fab4fd6b4@mediatek.com>
+
+From: "Jason-JH.Lin" <jason-jh.lin@mediatek.com>
+
+This reverts commit 139c27648f8d3b2283f74715d8e7f0df7f5e55ca which is
+commit a26cc2934331b57b5a7164bff344f0a2ec245fc0 upstream.
+
+Reason for revert:
+1. The commit [1] does not land on linux-5.15, so this patch does not
+fix anything.
+
+2. Since the fw_devlink improvements series [2] does not land on
+linux-5.15, using device_set_fwnode() causes the panel to flash during
+bootup.
+
+Incorrect link management may lead to incorrect device initialization,
+affecting firmware node links and consumer relationships.
+The fwnode setting of panel to the DSI device would cause a DSI
+initialization error without series[2], so this patch was reverted to
+avoid using the incomplete fw_devlink functionality.
+
+[1] commit 3fb16866b51d ("driver core: fw_devlink: Make cycle detection more robust")
+[2] Link: https://lore.kernel.org/all/20230207014207.1678715-1-saravanak@google.com
+
+Cc: stable@vger.kernel.org # 5.15.169
+Cc: stable@vger.kernel.org # 5.10.228
+Cc: stable@vger.kernel.org # 5.4.284
+Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpu/drm/drm_mipi_dsi.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/gpu/drm/drm_mipi_dsi.c
++++ b/drivers/gpu/drm/drm_mipi_dsi.c
+@@ -221,7 +221,7 @@ mipi_dsi_device_register_full(struct mip
+               return dsi;
+       }
+-      device_set_node(&dsi->dev, of_fwnode_handle(info->node));
++      dsi->dev.of_node = info->node;
+       dsi->channel = info->channel;
+       strlcpy(dsi->name, info->type, sizeof(dsi->name));
index 83e7799298b34c778d5671df252b20c861eccef2..c00e23169446d5d35be448d002637e70efc15b8f 100644 (file)
@@ -104,3 +104,4 @@ ocfs2-pass-u64-to-ocfs2_truncate_inline-maybe-overfl.patch
 x86-bugs-use-code-segment-selector-for-verw-operand.patch
 nilfs2-fix-kernel-bug-due-to-missing-clearing-of-checked-flag.patch
 mm-shmem-fix-data-race-in-shmem_getattr.patch
+revert-drm-mipi-dsi-set-the-fwnode-for-mipi_dsi_device.patch