]> Git Repo - J-linux.git/commitdiff
drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by default
authorChristoph Fritz <[email protected]>
Fri, 5 Jul 2024 09:38:44 +0000 (11:38 +0200)
committerRobert Foss <[email protected]>
Thu, 1 Aug 2024 11:34:18 +0000 (13:34 +0200)
Enable the transmission of an EoTp (end of transmission packet) by
default. EoTp should be enabled anyway because it is a Linux necessity
that can be disabled by a dsi mod_flag if needed.

EoTp signals the end of an HS transmission, this adds overall robustness
at protocol level at the expense of an increased overhead.

Signed-off-by: Christoph Fritz <[email protected]>
Reviewed-by: Robert Foss <[email protected]>
Signed-off-by: Robert Foss <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c

index c4e9d96933dced79b26eea139e32326c2a7f56d9..0fb02e4e7f4e5fcf1ad0b606b1485ab05ceb53f8 100644 (file)
@@ -722,7 +722,12 @@ static void dw_mipi_dsi_dpi_config(struct dw_mipi_dsi *dsi,
 
 static void dw_mipi_dsi_packet_handler_config(struct dw_mipi_dsi *dsi)
 {
-       dsi_write(dsi, DSI_PCKHDL_CFG, CRC_RX_EN | ECC_RX_EN | BTA_EN);
+       u32 val = CRC_RX_EN | ECC_RX_EN | BTA_EN | EOTP_TX_EN;
+
+       if (dsi->mode_flags & MIPI_DSI_MODE_NO_EOT_PACKET)
+               val &= ~EOTP_TX_EN;
+
+       dsi_write(dsi, DSI_PCKHDL_CFG, val);
 }
 
 static void dw_mipi_dsi_video_packet_config(struct dw_mipi_dsi *dsi,
This page took 0.057365 seconds and 4 git commands to generate.