Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge: synopsys: dw-mipi-dsi: enable EoTp by default

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 <chf.fritz@googlemail.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/6a7293bd06942131161c5a7b7878c51cfbbb807e.camel@googlemail.com

authored by

Christoph Fritz and committed by
Robert Foss
d97e71e4 bb99c51b

+6 -1
+6 -1
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
··· 722 722 723 723 static void dw_mipi_dsi_packet_handler_config(struct dw_mipi_dsi *dsi) 724 724 { 725 - dsi_write(dsi, DSI_PCKHDL_CFG, CRC_RX_EN | ECC_RX_EN | BTA_EN); 725 + u32 val = CRC_RX_EN | ECC_RX_EN | BTA_EN | EOTP_TX_EN; 726 + 727 + if (dsi->mode_flags & MIPI_DSI_MODE_NO_EOT_PACKET) 728 + val &= ~EOTP_TX_EN; 729 + 730 + dsi_write(dsi, DSI_PCKHDL_CFG, val); 726 731 } 727 732 728 733 static void dw_mipi_dsi_video_packet_config(struct dw_mipi_dsi *dsi,