drm/imx: parallel-display: Adjust bus_flags handling
authorMarek Vasut <marex@denx.de>
Mon, 9 Mar 2020 20:18:33 +0000 (21:18 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 20 Jul 2020 13:16:05 +0000 (15:16 +0200)
commitdbd1d67d9201ee1eeb770a4fa4459fa76018192f
tree66b71b8e174c229bae92bdbc4e1049cb181b808a
parentba807c94f67fd64b3051199810d9e4dd209fdc00
drm/imx: parallel-display: Adjust bus_flags handling

The bus_flags handling logic does not seem to cover all potential
usecases. Specifically, this seems to fail with an "edt,etm0700g0edh6"
display attached to an 24bit display interface, with interface-pix-fmt
= "rgb24" set in DT.

This patch fixes the problem by overriding the imx_crtc_state->bus_flags
from the imxpd->bus_flags only if the DT property "interface-pix-fmt" is
present or if the DI provides no formats.

Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/parallel-display.c