From: Jacopo Mondi <jacopo@jmondi.org> To: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> Subject: Re: [PATCH v2 1/4] drm: rcar-du: lvds: Convert to DRM panel bridge helper Date: Wed, 16 Dec 2020 15:44:15 +0100 [thread overview] Message-ID: <20201216144415.dobj5pn54ceres7j@uno.localdomain> (raw) In-Reply-To: <X9oQZAEB3pbfGSZc@pendragon.ideasonboard.com> Hi Laurent, On Wed, Dec 16, 2020 at 03:49:24PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > > > + if (lvds->panel) { > > > + lvds->next_bridge = devm_drm_panel_bridge_add(lvds->dev, > > > + lvds->panel); > > > > Reading the devm_drm_panel_bridge_add() function documentation: > > > > * devm_drm_panel_bridge_add - Creates a managed &drm_bridge and &drm_connector > > > > Doesn't this conflict with the drm_bridge_connector_init() called by > > the encoder in [4/4] ? > > It would, if the documentation was right :-) The function only creates a > bridge. A connector will only be created when the bridge is attached > without DRM_BRIDGE_ATTACH_NO_CONNECTOR. Well, reading it again, it is kind of implied that if NO_CONNECTOR is given to the bridge, no connector will be registered at all. > > Would you like to send a patch to fix the documentation ? > > > > + if (IS_ERR_OR_NULL(lvds->next_bridge)) { > > > + ret = -EINVAL; > > > + goto done; > > > + } > > > + } > > > + > > > if (lvds->info->quirks & RCAR_LVDS_QUIRK_DUAL_LINK) > > > ret = rcar_lvds_parse_dt_companion(lvds); > > > > > -- > Regards, > > Laurent Pinchart
WARNING: multiple messages have this Message-ID (diff)
From: Jacopo Mondi <jacopo@jmondi.org> To: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Cc: linux-renesas-soc@vger.kernel.org, Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>, Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 1/4] drm: rcar-du: lvds: Convert to DRM panel bridge helper Date: Wed, 16 Dec 2020 15:44:15 +0100 [thread overview] Message-ID: <20201216144415.dobj5pn54ceres7j@uno.localdomain> (raw) In-Reply-To: <X9oQZAEB3pbfGSZc@pendragon.ideasonboard.com> Hi Laurent, On Wed, Dec 16, 2020 at 03:49:24PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > > > + if (lvds->panel) { > > > + lvds->next_bridge = devm_drm_panel_bridge_add(lvds->dev, > > > + lvds->panel); > > > > Reading the devm_drm_panel_bridge_add() function documentation: > > > > * devm_drm_panel_bridge_add - Creates a managed &drm_bridge and &drm_connector > > > > Doesn't this conflict with the drm_bridge_connector_init() called by > > the encoder in [4/4] ? > > It would, if the documentation was right :-) The function only creates a > bridge. A connector will only be created when the bridge is attached > without DRM_BRIDGE_ATTACH_NO_CONNECTOR. Well, reading it again, it is kind of implied that if NO_CONNECTOR is given to the bridge, no connector will be registered at all. > > Would you like to send a patch to fix the documentation ? > > > > + if (IS_ERR_OR_NULL(lvds->next_bridge)) { > > > + ret = -EINVAL; > > > + goto done; > > > + } > > > + } > > > + > > > if (lvds->info->quirks & RCAR_LVDS_QUIRK_DUAL_LINK) > > > ret = rcar_lvds_parse_dt_companion(lvds); > > > > > -- > Regards, > > Laurent Pinchart _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-12-16 14:45 UTC|newest] Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-12-16 0:50 [PATCH v2 0/4] Converter R-Car DU to the DRM bridge connector helper Laurent Pinchart 2020-12-16 0:50 ` Laurent Pinchart 2020-12-16 0:50 ` [PATCH v2 1/4] drm: rcar-du: lvds: Convert to DRM panel bridge helper Laurent Pinchart 2020-12-16 0:50 ` Laurent Pinchart 2020-12-16 13:16 ` Jacopo Mondi 2020-12-16 13:16 ` Jacopo Mondi 2020-12-16 13:49 ` Laurent Pinchart 2020-12-16 13:49 ` Laurent Pinchart 2020-12-16 14:44 ` Jacopo Mondi [this message] 2020-12-16 14:44 ` Jacopo Mondi 2020-12-16 0:50 ` [PATCH v2 2/4] drm: bridge: dw-hdmi: Attach to next bridge if available Laurent Pinchart 2020-12-16 0:50 ` Laurent Pinchart 2020-12-16 0:50 ` [PATCH v2 3/4] drm: rcar-du: dw-hdmi: Set output port number Laurent Pinchart 2020-12-16 0:50 ` Laurent Pinchart 2020-12-16 0:50 ` [PATCH v2 4/4] drm: rcar-du: Use drm_bridge_connector_init() helper Laurent Pinchart 2020-12-16 0:50 ` Laurent Pinchart 2020-12-16 11:53 ` Jacopo Mondi 2020-12-16 11:53 ` Jacopo Mondi 2020-12-16 13:54 ` Laurent Pinchart 2020-12-16 13:54 ` Laurent Pinchart
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20201216144415.dobj5pn54ceres7j@uno.localdomain \ --to=jacopo@jmondi.org \ --cc=dri-devel@lists.freedesktop.org \ --cc=kieran.bingham+renesas@ideasonboard.com \ --cc=laurent.pinchart+renesas@ideasonboard.com \ --cc=laurent.pinchart@ideasonboard.com \ --cc=linux-renesas-soc@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.