[PATCH 15/60] drm/bridge: tfp410: Allow operation without drm_connector

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Jul 7 18:18:52 UTC 2019


The tfp410 driver can operate as part of a pipeline where the
drm_connector is created by the display controller. Enable this mode of
operation by skipping creation of a drm_connector internally.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 drivers/gpu/drm/bridge/ti-tfp410.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c
index e94c4956731d..38d2d2bde4a0 100644
--- a/drivers/gpu/drm/bridge/ti-tfp410.c
+++ b/drivers/gpu/drm/bridge/ti-tfp410.c
@@ -136,7 +136,7 @@ static int tfp410_attach(struct drm_bridge *bridge, bool create_connector)
 		return ret;
 
 	if (!create_connector)
-		return -EINVAL;
+		return 0;
 
 	if (!bridge->encoder) {
 		dev_err(dvi->dev, "Missing encoder\n");
-- 
Regards,

Laurent Pinchart



More information about the dri-devel mailing list