Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1389827
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 05/11] drm: Add Allwinner A10 Display Engine support |
| Date | 2016-04-28 09:50 +0200 |
| Message-ID | <rsORX-7Mg-1@gated-at.bofh.it> (permalink) |
| References | <rrOKm-6zz-5@gated-at.bofh.it> <rrOKo-6zz-53@gated-at.bofh.it> <rs7jX-4Yn-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi Boris,
On Tue, Apr 26, 2016 at 11:14:19AM +0200, Boris Brezillon wrote:
> Hi Maxime,
>
> On Mon, 25 Apr 2016 15:22:46 +0200
> Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
>
> > The Allwinner A10 and subsequent SoCs share the same display pipeline, with
> > variations in the number of controllers (1 or 2), or the presence or not of
> > some output (HDMI, TV, VGA) or not.
> >
> > Add a driver with a limited set of features for now, and we will hopefully
> > support all of them eventually
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
>
> Just 2 comments below. Once addressed you can add my
>
> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
>
> > ---
>
> [...]
>
> > +
> > +static int sun4i_drv_connector_plug_all(struct drm_device *drm)
> > +{
> > + struct drm_connector *connector, *failed;
> > + int ret;
> > +
> > + mutex_lock(&drm->mode_config.mutex);
> > + list_for_each_entry(connector, &drm->mode_config.connector_list, head) {
> > + ret = drm_connector_register(connector);
> > + if (ret) {
> > + failed = connector;
> > + goto err;
> > + }
> > + }
> > + mutex_unlock(&drm->mode_config.mutex);
> > + return 0;
> > +
> > +err:
> > + list_for_each_entry(connector, &drm->mode_config.connector_list, head) {
> > + if (failed == connector)
> > + break;
> > +
> > + drm_connector_unregister(connector);
> > + }
> > + mutex_unlock(&drm->mode_config.mutex);
> > +
> > + return ret;
> > +}
>
> You can use the generic drm_connector_register_all() to do that.
>
> [...]
>
> > +
> > +static void sun4i_drv_unbind(struct device *dev)
> > +{
> > + struct drm_device *drm = dev_get_drvdata(dev);
> > +
>
> And you probably miss a call to drm_connector_unregister_all() here.
Thanks, I'll fix that.
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 00/11] drm: Add Allwinner A10 display engine support Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-04-25 15:30 +0200
Re: [PATCH v4 00/11] drm: Add Allwinner A10 display engine support Emil Velikov <emil.l.velikov@gmail.com> - 2016-04-25 18:00 +0200
Re: [PATCH v4 05/11] drm: Add Allwinner A10 Display Engine support Boris Brezillon <boris.brezillon@free-electrons.com> - 2016-04-26 11:20 +0200
Re: [PATCH v4 05/11] drm: Add Allwinner A10 Display Engine support Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-04-28 09:50 +0200
Re: [PATCH v4 00/11] drm: Add Allwinner A10 display engine support Maxime Ripard <maxime.ripard@free-electrons.com> - 2016-05-04 20:10 +0200
csiph-web