![Laurent Pinchart](/assets/img/avatar_default.png)
Most bridge drivers create a DRM connector to model the connector at the output of the bridge. This model is historical and has worked pretty well so far, but causes several issues: - It prevents supporting more complex display pipelines where DRM connector operations are split over multiple components. For instance a pipeline with a bridge connected to the DDC signals to read EDID data, and another one connected to the HPD signal to detect connection and disconnection, will not be possible to support through this model. - It requires every bridge driver to implement similar connector handling code, resulting in code duplication. - It assumes that a bridge will either be wired to a connector or to another bridge, but doesn't support bridges that can be used in both positions very well (although there is some ad-hoc support for this in the analogix_dp bridge driver). In order to solve these issues, ownership of the connector needs to be moved to the display controller driver. To avoid code duplication in display controller drivers, add a new helper to create and manage a DRM connector backed by a chain of bridges. All connector operations are delegating to the appropriate bridge in the chain. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Acked-by: Sam Ravnborg <sam@ravnborg.org> Tested-by: Sebastian Reichel <sebastian.reichel@collabora.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200226112514.12455-21-laurent.pinchart@ideasonboard.com
19 lines
548 B
C
19 lines
548 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2019 Laurent Pinchart <laurent.pinchart@ideasonboard.com>
|
|
*/
|
|
|
|
#ifndef __DRM_BRIDGE_CONNECTOR_H__
|
|
#define __DRM_BRIDGE_CONNECTOR_H__
|
|
|
|
struct drm_connector;
|
|
struct drm_device;
|
|
struct drm_encoder;
|
|
|
|
void drm_bridge_connector_enable_hpd(struct drm_connector *connector);
|
|
void drm_bridge_connector_disable_hpd(struct drm_connector *connector);
|
|
struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
|
|
struct drm_encoder *encoder);
|
|
|
|
#endif /* __DRM_BRIDGE_CONNECTOR_H__ */
|