]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/omap: Don't store display pointer in omap_connector structure
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 13 Sep 2018 00:10:25 +0000 (03:10 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 18 Mar 2019 09:42:12 +0000 (11:42 +0200)
commit6b97cc9560474f8dd1d4ef14caa1d33249dd8176
treea863b53461663c8bd5da7f15345c3809a7897e30
parentde9225a9bda1b07e11e02a0228a55c5df9fdc9dd
drm/omap: Don't store display pointer in omap_connector structure

Display pipelines based on drm_bridge are handled from the bridge
closest to the CRTC. To move to that model we thus need to transition
away from walking pipelines in the other direction, and from accessing
the device at the end of the pipeline when possible.

Remove most accesses to the display device from the omap_connector
implementation, and don't store it in the omap_connector structure.

- For debug messages we can simply use the connector name instead.
- For type checks we can use the drm_connector type.
- For operation lookup we can start at the other end of the pipeline and
  locate the last matching device.

The display device is still passed to the connector init function in
order to find its type, which requires access to the end of the
pipeline.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_connector.c