diff mbox

drm: rcar-du: Link HDMI encoder with bridge

Message ID 1470256296-8476-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com (mailing list archive)
State New, archived
Headers show

Commit Message

Laurent Pinchart Aug. 3, 2016, 8:31 p.m. UTC
The conversion of the rcar-du driver from the I2C slave encoder to the
DRM bridge API left the HDMI encoder's bridge pointer NULL, preventing
the bridge from being handled automatically by the DRM core. Fix it.

Fixes: 1d926114d8f4 ("drm: rcar-du: Remove i2c slave encoder interface for hdmi encoder")
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
 drivers/gpu/drm/rcar-du/rcar_du_hdmienc.c | 1 +
 1 file changed, 1 insertion(+)

Dave, this is a candidate for v4.8 as the offending patch just made it
upstream during the merge window.
diff mbox


diff --git a/drivers/gpu/drm/rcar-du/rcar_du_hdmienc.c b/drivers/gpu/drm/rcar-du/rcar_du_hdmienc.c
index 4de3ff0dbebd..e03004f4588d 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_hdmienc.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_hdmienc.c
@@ -125,6 +125,7 @@  int rcar_du_hdmienc_init(struct rcar_du_device *rcdu,
 	/* Link drm_bridge to encoder */
 	bridge->encoder = encoder;
+	encoder->bridge = bridge;
 	ret = drm_bridge_attach(rcdu->ddev, bridge);
 	if (ret) {