drm/sun4i: mixer: Call of_dma_configure if there's an IOMMU
authorMaxime Ripard <maxime@cerno.tech>
Wed, 13 May 2020 14:07:24 +0000 (16:07 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 23 Jun 2020 17:13:37 +0000 (19:13 +0200)
commit842ec61f4006a6477a9deaedd69131e9f46e4cb5
treedba581b16fe537cf04c7a08f6883c1207e8785ce
parenta05caf9e62a85d12da27e814ac13195f4683f21c
drm/sun4i: mixer: Call of_dma_configure if there's an IOMMU

The main DRM device is actually a virtual device so it doesn't have the
iommus property, which is instead on the DMA masters, in this case the
mixers.

Add a call to of_dma_configure with the mixers DT node but on the DRM
virtual device to configure it in the same way than the mixers.

Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/9a4daf438dd3f2fe07afb23688bfb793a0613d7d.1589378833.git-series.maxime@cerno.tech
(cherry picked from commit b718102dbdfd0285ad559687a30e27cc9124e592)
[Maxime: Applied to -fixes since it missed the merge window and display is
         broken without it]
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/sun4i/sun8i_mixer.c