]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 6.1
authorSasha Levin <sashal@kernel.org>
Fri, 29 Sep 2023 16:20:37 +0000 (12:20 -0400)
committerSasha Levin <sashal@kernel.org>
Fri, 29 Sep 2023 16:20:37 +0000 (12:20 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-6.1/drm-bridge-ti-sn65dsi83-do-not-generate-hfp-hbp-hsa-.patch [new file with mode: 0644]
queue-6.1/series

diff --git a/queue-6.1/drm-bridge-ti-sn65dsi83-do-not-generate-hfp-hbp-hsa-.patch b/queue-6.1/drm-bridge-ti-sn65dsi83-do-not-generate-hfp-hbp-hsa-.patch
new file mode 100644 (file)
index 0000000..8f15d43
--- /dev/null
@@ -0,0 +1,41 @@
+From f4d324fb5628773907dd90342d18f978bd9a6d09 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Mon, 3 Apr 2023 21:02:42 +0200
+Subject: drm/bridge: ti-sn65dsi83: Do not generate HFP/HBP/HSA and EOT packet
+
+From: Marek Vasut <marex@denx.de>
+
+[ Upstream commit ca161b259cc84fe1f4a2ce4c73c3832cf6f713f1 ]
+
+Do not generate the HS front and back porch gaps, the HSA gap and
+EOT packet, as per "SN65DSI83 datasheet SLLSEC1I - SEPTEMBER 2012
+- REVISED OCTOBER 2020", page 22, these packets are not required.
+This makes the TI SN65DSI83 bridge work with Samsung DSIM on i.MX8MN.
+
+Signed-off-by: Marek Vasut <marex@denx.de>
+Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
+Signed-off-by: Robert Foss <rfoss@kernel.org>
+Link: https://patchwork.freedesktop.org/patch/msgid/20230403190242.224490-1-marex@denx.de
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ drivers/gpu/drm/bridge/ti-sn65dsi83.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi83.c b/drivers/gpu/drm/bridge/ti-sn65dsi83.c
+index 55efd3eb66723..3f43b44145a89 100644
+--- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c
++++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c
+@@ -655,7 +655,9 @@ static int sn65dsi83_host_attach(struct sn65dsi83 *ctx)
+       dsi->lanes = dsi_lanes;
+       dsi->format = MIPI_DSI_FMT_RGB888;
+-      dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST;
++      dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
++                        MIPI_DSI_MODE_VIDEO_NO_HFP | MIPI_DSI_MODE_VIDEO_NO_HBP |
++                        MIPI_DSI_MODE_VIDEO_NO_HSA | MIPI_DSI_MODE_NO_EOT_PACKET;
+       ret = devm_mipi_dsi_attach(dev, dsi);
+       if (ret < 0) {
+-- 
+2.40.1
+
index 59bfef6e8e4378e7400ab34e6c7a9633a2d88320..ba13108734eb2c4968feb5acd76cf4f262f2a23a 100644 (file)
@@ -108,3 +108,4 @@ btrfs-reset-destination-buffer-when-read_extent_buff.patch
 vfio-mdev-fix-a-null-ptr-deref-bug-for-mdev_unregist.patch
 mips-alchemy-only-build-mmc-support-helpers-if-au1xm.patch
 spi-spi-gxp-bug-correct-spi-write-return-value.patch
+drm-bridge-ti-sn65dsi83-do-not-generate-hfp-hbp-hsa-.patch