summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/mediatek/mtk_drm_crtc.c
diff options
context:
space:
mode:
authorJulien STEPHAN <jstephan@baylibre.com>2022-02-14 10:27:42 +0100
committerChun-Kuang Hu <chunkuang.hu@kernel.org>2022-02-16 23:29:29 +0800
commit81cc7e51c4f1686b71e30046437056ece6b2cb4d (patch)
treef4416599b2e6c974e82b224d983deafd3e8a2a1f /drivers/gpu/drm/mediatek/mtk_drm_crtc.c
parente7dcfe64204a5cd9a74a9ca7d9c7a22434dc7fe5 (diff)
drm/mediatek: Allow commands to be sent during video mode
Mipi dsi panel drivers can use mipi_dsi_dcs_{set,get}_display_brightness() to request backlight changes. This can be done during panel initialization (dsi is in command mode) or afterwards (dsi is in Video Mode). When the DSI is in Video Mode, all commands are rejected. Detect current DSI mode in mtk_dsi_host_transfer() and switch modes temporarily to allow commands to be sent. Signed-off-by: Julien STEPHAN <jstephan@baylibre.com> Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/mediatek/mtk_drm_crtc.c')
0 files changed, 0 insertions, 0 deletions