video: tegra20: dsi: respect speed mode used for DSI commands transfer
authorSvyatoslav Ryhel <clamor95@gmail.com>
Fri, 21 Feb 2025 12:13:08 +0000 (14:13 +0200)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Thu, 13 Mar 2025 17:13:17 +0000 (19:13 +0200)
Use DSI message flag to set correct speed mode for message transfer.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
drivers/video/tegra20/tegra-dsi.c

index 3ce0d33..a2a22fa 100644 (file)
@@ -251,6 +251,9 @@ static ssize_t tegra_dsi_host_transfer(struct mipi_dsi_host *host,
        value = DSI_HOST_CONTROL_CRC_RESET | DSI_HOST_CONTROL_TX_TRIG_HOST |
                DSI_HOST_CONTROL_CS | DSI_HOST_CONTROL_ECC;
 
+       if ((msg->flags & MIPI_DSI_MSG_USE_LPM) == 0)
+               value |= DSI_HOST_CONTROL_HS;
+
        /*
         * The host FIFO has a maximum of 64 words, so larger transmissions
         * need to use the video FIFO.