Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge: tfp410: Allow operation without drm_connector

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@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-20-laurent.pinchart@ideasonboard.com

authored by

Laurent Pinchart and committed by
Tomi Valkeinen
e00a5caa 5cafa0f1

+2 -4
+2 -4
drivers/gpu/drm/bridge/ti-tfp410.c
··· 124 124 if (ret < 0) 125 125 return ret; 126 126 127 - if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR) { 128 - DRM_ERROR("Fix bridge driver to make connector optional!"); 129 - return -EINVAL; 130 - } 127 + if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR) 128 + return 0; 131 129 132 130 if (!bridge->encoder) { 133 131 dev_err(dvi->dev, "Missing encoder\n");