drm/bridge: Add an ->atomic_check() hook
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 6 Jan 2020 14:34:08 +0000 (15:34 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 7 Jan 2020 09:11:15 +0000 (10:11 +0100)
commitb86d895524ab7281da8ca788e3666ab622fc8620
tree8f43ee4ec3a9c2ba9b02dacbbf922a6b4e322aaf
parentf7619a58ef9299c42a604ede063bb6e5b88098fb
drm/bridge: Add an ->atomic_check() hook

So that bridge drivers have a way to check/reject an atomic operation.
The drm_atomic_bridge_chain_check() (which is just a wrapper around
the ->atomic_check() hook) is called in place of
drm_bridge_chain_mode_fixup() (when ->atomic_check() is not implemented,
the core falls back on ->mode_fixup(), so the behavior should stay
the same for existing bridge drivers).

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed by: Jernej Skrabec <jernej.skrabec@siol.net>
Tested-by: Jonas Karlman <jonas@kwiboo.se>
Link: https://patchwork.freedesktop.org/patch/msgid/20200106143409.32321-4-narmstrong@baylibre.com
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_bridge.c
include/drm/drm_bridge.h