summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSvyatoslav Ryhel <clamor95@gmail.com>2025-02-21 14:13:08 +0200
committerSvyatoslav Ryhel <clamor95@gmail.com>2025-03-13 19:13:17 +0200
commitae31d4347710e853b129deed0a0721ae42b584e0 (patch)
tree55ffa52727912f22dbef782211dc0641ce69cbfe
parentd4325bbc16a66ce1fcecdddb394190d971dcffbc (diff)
video: tegra20: dsi: respect speed mode used for DSI commands transfer
Use DSI message flag to set correct speed mode for message transfer. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
-rw-r--r--drivers/video/tegra20/tegra-dsi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c
index 3ce0d33e380..a2a22fa0fe2 100644
--- a/drivers/video/tegra20/tegra-dsi.c
+++ b/drivers/video/tegra20/tegra-dsi.c
@@ -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.