]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:19 +0000 (14:24 +0200)
commit1893e576b3b1d457c261c5961cd0973540db42d3
tree7faa115374dd50cea386a30d008e5529aa2eced5
parentbc70a974437cd76575ed08f8e493f4ccb6475824
drm/mediatek: Allow commands to be sent during video mode

[ Upstream commit 36958d814e3c47b628edc38faa10adf8060ac2a0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_dsi.c