drm/bridge: Add a drm_bridge_state object
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 6 Jan 2020 14:34:06 +0000 (15:34 +0100)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 7 Jan 2020 09:10:49 +0000 (10:10 +0100)
commit6ed7e9625fa6a6ee8230945820544767ed5799c4
tree686766d91af45cc395b9d209d28b54ecae025056
parent02da7c3d79528c8c6553e74c37562874fe898a21
drm/bridge: Add a drm_bridge_state object

One of the last remaining objects to not have its atomic state.

This is being motivated by our attempt to support runtime bus-format
negotiation between elements of the bridge chain.
This patch just paves the road for such a feature by adding a new
drm_bridge_state object inheriting from drm_private_obj so we can
re-use some of the existing state initialization/tracking logic.

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-2-narmstrong@baylibre.com
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_bridge.c
include/drm/drm_atomic.h
include/drm/drm_bridge.h