From: Sasha Levin Date: Fri, 29 Sep 2023 16:20:38 +0000 (-0400) Subject: Fixes for 5.15 X-Git-Tag: v6.5.6~71 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3978e1f209cc229a1e687885c6ad02878aa2af3e;p=thirdparty%2Fkernel%2Fstable-queue.git Fixes for 5.15 Signed-off-by: Sasha Levin --- diff --git a/queue-5.15/drm-bridge-ti-sn65dsi83-do-not-generate-hfp-hbp-hsa-.patch b/queue-5.15/drm-bridge-ti-sn65dsi83-do-not-generate-hfp-hbp-hsa-.patch new file mode 100644 index 00000000000..ceabad12c80 --- /dev/null +++ b/queue-5.15/drm-bridge-ti-sn65dsi83-do-not-generate-hfp-hbp-hsa-.patch @@ -0,0 +1,43 @@ +From 7f988529a14f2137765cb28674aa049640bc2391 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +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 + +[ Upstream commit f4d324fb5628773907dd90342d18f978bd9a6d09 ] + +[ 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 +Reviewed-by: Laurent Pinchart +Signed-off-by: Robert Foss +Link: https://patchwork.freedesktop.org/patch/msgid/20230403190242.224490-1-marex@denx.de +Signed-off-by: Sasha Levin +--- + 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 b3cb910b30852..f96c0a89854b8 100644 +--- a/drivers/gpu/drm/bridge/ti-sn65dsi83.c ++++ b/drivers/gpu/drm/bridge/ti-sn65dsi83.c +@@ -272,7 +272,9 @@ static int sn65dsi83_attach(struct drm_bridge *bridge, + + dsi->lanes = ctx->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 = mipi_dsi_attach(dsi); + if (ret < 0) { +-- +2.40.1 + diff --git a/queue-5.15/series b/queue-5.15/series index ad4e11a26fa..e026b14c1cb 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -89,3 +89,4 @@ scsi-qla2xxx-select-qpair-depending-on-which-cpu-pos.patch scsi-qla2xxx-use-raw_smp_processor_id-instead-of-smp.patch btrfs-reset-destination-buffer-when-read_extent_buff.patch mips-alchemy-only-build-mmc-support-helpers-if-au1xm.patch +drm-bridge-ti-sn65dsi83-do-not-generate-hfp-hbp-hsa-.patch