]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ingenic: Fix non-OSD mode
authorPaul Cercueil <paul@crapouillou.net>
Sun, 24 Jan 2021 08:55:52 +0000 (08:55 +0000)
committerPaul Cercueil <paul@crapouillou.net>
Sun, 7 Mar 2021 16:27:22 +0000 (16:27 +0000)
commit8c3f7cc7bc22115c7d42420f44703c80443996a7
tree07d2b0a06525bfd5b0ba857f7a0f9ec9683d0341
parentd7d505bdc748400610b96fde415c3ab52b88a85d
drm/ingenic: Fix non-OSD mode

Even though the JZ4740 did not have the OSD mode, it had (according to
the documentation) two DMA channels, but there is absolutely no
information about how to select the second DMA channel.

Make the ingenic-drm driver work in non-OSD mode by using the
foreground0 plane (which is bound to the DMA0 channel) as the primary
plane, instead of the foreground1 plane, which is the primary plane
when in OSD mode.

Fixes: 466c577e2bee ("drm/ingenic: Add support for OSD mode")
Cc: <stable@vger.kernel.org> # v5.8+
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: H. Nikolaus Schaller <hns@goldelico.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210124085552.29146-5-paul@crapouillou.net
drivers/gpu/drm/ingenic/ingenic-drm-drv.c