]> git.baikalelectronics.ru Git - kernel.git/commit
drm/bridge: nwl-dsi: Add atomic_get_input_bus_fmts
authorGuido Günther <agx@sigxcpu.org>
Mon, 11 Oct 2021 13:41:23 +0000 (15:41 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 12 Oct 2021 09:17:41 +0000 (11:17 +0200)
commit98bcca77ea8f2a0a72535950e2e3f1623f0523a9
tree2410017d72d0e7b9cbae25aef9fcc5e08fc90179
parent69a0bd0e1f3a2104a0e56349df51a28e8cd9453f
drm/bridge: nwl-dsi: Add atomic_get_input_bus_fmts

Components further up in the chain might ask us for supported formats.

Without this MEDIA_BUS_FMT_FIXED is assumed which then breaks display
output with mxsfb since it can't determine a proper bus format.

We handle the bus formats that correspond to the DSI formats the bridge
can potentially output (see chapter 13.6 of the i.MX 8MQ reference
manual) - which matches what xsfb can input.

Fixes: 4efcb98c1353 ("drm: mxsfb: Use bus_format from the nearest bridge if present")
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1712f2b952694fd4484dfd8576fbc5b4d7adf042.1633959458.git.agx@sigxcpu.org
drivers/gpu/drm/bridge/nwl-dsi.c