]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Allow commands to be sent during video mode
authorJulien STEPHAN <jstephan@baylibre.com>
Mon, 14 Feb 2022 09:27:42 +0000 (10:27 +0100)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 16 Feb 2022 15:29:29 +0000 (23:29 +0800)
commit36958d814e3c47b628edc38faa10adf8060ac2a0
treef4416599b2e6c974e82b224d983deafd3e8a2a1f
parent3f41dca0a976f6b0e41c462a53c774acb15a4e66
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>
drivers/gpu/drm/mediatek/mtk_dsi.c