]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bridge: lontium-lt8912b: Validate mode in drm_bridge_funcs::mode_valid()
authorLiu Ying <victor.liu@nxp.com>
Tue, 13 Aug 2024 09:16:37 +0000 (17:16 +0800)
committerRobert Foss <rfoss@kernel.org>
Mon, 19 Aug 2024 13:20:46 +0000 (15:20 +0200)
commitfe828fbd87786238b30f44cafd698d975d956c97
tree3005a49235b54d8ab3e7388024d7a612f4019b3f
parent3e828c670b0ac8a9564c69f5c5ecf637b22a58d6
drm/bridge: lontium-lt8912b: Validate mode in drm_bridge_funcs::mode_valid()

If the bridge is attached with the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag set,
this driver won't initialize a connector and hence display mode won't be
validated in drm_connector_helper_funcs::mode_valid().  So, move the mode
validation from drm_connector_helper_funcs::mode_valid() to
drm_bridge_funcs::mode_valid(), because the mode validation is always done
for the bridge.

Fixes: 30e2ae943c26 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240813091637.1054586-1-victor.liu@nxp.com
drivers/gpu/drm/bridge/lontium-lt8912b.c