summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge/tc358768.c
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2021-07-27 03:45:21 +0200
committerSam Ravnborg <sam@ravnborg.org>2021-07-27 09:48:24 +0200
commit0f3b68b66a6deb41c3c0eb805bb3f407083d2f57 (patch)
tree890ffdc0c7a8e8faf61a762c4820c3848bd82f1f /drivers/gpu/drm/bridge/tc358768.c
parentvideo: ep93xx: Prepare clock before using it (diff)
downloadlinux-0f3b68b66a6deb41c3c0eb805bb3f407083d2f57.tar.xz
linux-0f3b68b66a6deb41c3c0eb805bb3f407083d2f57.zip
drm/dsi: Add _NO_ to MIPI_DSI_* flags disabling features
Many of the DSI flags have names opposite to their actual effects, e.g. MIPI_DSI_MODE_EOT_PACKET means that EoT packets will actually be disabled. Fix this by including _NO_ in the flag names, e.g. MIPI_DSI_MODE_NO_EOT_PACKET. Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Robert Foss <robert.foss@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Andrzej Hajda <andrzej.hajda@samsung.com> Reviewed-by: Xin Ji <xji@analogixsemi.com> # anx7625.c Reviewed-by: Abhinav Kumar <abhinavk@codeaurora.org> # msm/dsi Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Link: https://patchwork.freedesktop.org/patch/msgid/20210727094435.v3.1.I629b2366a6591410359c7fcf6d385b474b705ca2@changeid
Diffstat (limited to 'drivers/gpu/drm/bridge/tc358768.c')
-rw-r--r--drivers/gpu/drm/bridge/tc358768.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/bridge/tc358768.c b/drivers/gpu/drm/bridge/tc358768.c
index 8ed8302d6bbb..320f95ae6077 100644
--- a/drivers/gpu/drm/bridge/tc358768.c
+++ b/drivers/gpu/drm/bridge/tc358768.c
@@ -825,7 +825,7 @@ static void tc358768_bridge_pre_enable(struct drm_bridge *bridge)
if (!(dsi_dev->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS))
val |= TC358768_DSI_CONTROL_HSCKMD;
- if (dsi_dev->mode_flags & MIPI_DSI_MODE_EOT_PACKET)
+ if (dsi_dev->mode_flags & MIPI_DSI_MODE_NO_EOT_PACKET)
val |= TC358768_DSI_CONTROL_EOTDIS;
tc358768_write(priv, TC358768_DSI_CONFW, val);