Skip to content

Commit f45acf7

Browse files
tombarobertfoss
authored andcommitted
drm/bridge: lt8912b: Add missing drm_bridge_attach call
The driver does not call drm_bridge_attach(), which causes the next bridge to not be added to the bridge chain. This causes the pipeline init to fail when DRM_BRIDGE_ATTACH_NO_CONNECTOR is used. Add the call to drm_bridge_attach(). Fixes: 30e2ae9 ("drm/bridge: Introduce LT8912B DSI to HDMI bridge") Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Robert Foss <rfoss@kernel.org> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230804-lt8912b-v1-4-c542692c6a2f@ideasonboard.com
1 parent 6985c5e commit f45acf7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/gpu/drm/bridge/lontium-lt8912b.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,13 @@ static int lt8912_bridge_attach(struct drm_bridge *bridge,
558558
struct lt8912 *lt = bridge_to_lt8912(bridge);
559559
int ret;
560560

561+
ret = drm_bridge_attach(bridge->encoder, lt->hdmi_port, bridge,
562+
DRM_BRIDGE_ATTACH_NO_CONNECTOR);
563+
if (ret < 0) {
564+
dev_err(lt->dev, "Failed to attach next bridge (%d)\n", ret);
565+
return ret;
566+
}
567+
561568
if (!(flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR)) {
562569
ret = lt8912_bridge_connector_init(bridge);
563570
if (ret) {

0 commit comments

Comments
 (0)