ksummit.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Shuah Khan <shuahkhan@gmail.com>
To: tiwai@suse.de
Cc: shuah@kernel.org, dan.carpenter@oracle.com,
	ksummit-discuss@lists.linuxfoundation.org
Subject: Re: [Ksummit-discuss] [MAINTAINER SUMMIT] How can we treat staging drivers better?
Date: Wed, 5 Sep 2018 08:59:40 -0600	[thread overview]
Message-ID: <CAKocOON-Kp1ps6GJhk9GruPkXTM7UpJ66o_=LQQLObM4-uowoQ@mail.gmail.com> (raw)
In-Reply-To: <s5hzhwwatwn.wl-tiwai@suse.de>

On Wed, Sep 5, 2018 at 8:41 AM Takashi Iwai <tiwai@suse.de> wrote:
>
> On Wed, 05 Sep 2018 16:20:46 +0200,
> Greg KH wrote:
> >
> > On Wed, Sep 05, 2018 at 04:03:50PM +0200, Takashi Iwai wrote:
> > > On Wed, 05 Sep 2018 15:55:28 +0200,
> > > Dan Carpenter wrote:
> > > >
> > > > On Wed, Sep 05, 2018 at 03:35:53PM +0200, Takashi Iwai wrote:
> > > > > The staging driver is a wonderful process to promote the downstream
> > > > > code to the upstream, but I have doubt whether it's working really as
> > > > > expected for now.
> > > > >
> > > > > - Often the drivers live forever in staging although they should have
> > > > >   been moved to the upper, properly maintained, subsystems.
> > > >
> > > > The only one that comes to mind is comedi.  I think those guys know that
> > > > everyone is fine with them moving the code.
> > > >
> > > > Do you have another example?
> > >
> > > Well, not forever, but many codes remain there for many cycles, I
> > > thought.  But I haven't counted and no statistics, so it might be my
> > > false impression.
> >
> > I do drop things every few kernel releases.  Sometimes people do not
> > notice.  I need to do a sweep and see what I can delete again, I'll try
> > to do that later this release cycle.
> >
> > And yes, comedi does need to move out, as does a few other (speakup is
> > one example).  I always take patches to do this, as my cycles are less
> > these days due to the security crap this year :(
> >
> > Also, some subsystems have moved out, on their own, to the real part of
> > the kernel.  Look at the -rc1 merge requests for those examples, I think
> > we have had that happen every kernel release for the past year or so.
>
> OK, so it can be my false impression that things are sticking too
> long.
>
>
> > > > > - Code changes in staging are mostly only scratching surfaces, minor
> > > > >   code style cleanups, etc, what checkpatch suggests.
> > > >
> > > > That's probably true for the wireless drivers because converting them
> > > > to use mac80211 is complicated.  The other drivers seem to be doing
> > > > better.
> > >
> > > So which drivers were the good examples?  Maybe we can learn from
> > > them.
> >
> > Look at what moved out this, and the past, kernel releases for examples
> > (I can't remember the names at the moment, sorry).  Another driver just
> > got moved last week into the networking tree, so that's another success
> > story.
> >
> > Again, it happens all the time, I don't think people are paying
> > attention because it's for hardware they don't care about :)
> >
> > > > > - There are little communications with the corresponding subsystem;
> > > > >   already a few times I was surprised by casually finding a staging
> > > > >   driver code by grepping for preparing API changes.
> > > >
> > > > Which ones are you interested in?
> > >
> > > My primary interest is the sound stuff.
> >
> > Do we have sound drivers in staging other than the most and bcm2835
> > driver?
>
> Yeah, that's an example I stumbled on in this week, so I raised the
> topic :)
>
> > That's all I notice and both of those drivers have active
> > maintainers/developers who are working to get the code cleaned up and
> > pushed to the "real" part of the kernel.  most has stalled a bit these
> > past few months, but the developers are active and trying.  They can
> > always use the help.
>
> I don't blame you guys and developers, but still I think it would have
> been great if the existence of the driver code was informed
> beforehand.
>
> > > > I'd always prefer to hand off staging
> > > > drivers to an existing subsystem but it's not always clear who that
> > > > should be.
> > >
> > > IMO, *that* is the problem -- no proper taker in the subsystem.
> >
> > I don't understand what you mean here.  I always push code to the
> > subsystem-specific maintainers when they are to "graduate", I never
> > merge things behind maintainers backs.  If subsystems don't have
> > maintainers, well, I have to use my own judgement and then the
> > developers become the subsystem maintainers on their own.
> >
> > So what do you mean by "no proper taker"?
>
> Well, it's what Dan mentioned -- "not always clear who to hand off".
>
> If the staging driver is worked out from both the driver devs and the
> subsystem devs, that's fine.  But, again, I believe this would have
> been great if this stuff is informed and discussed together.
>
> The cleanup and polishing the driver code is easy.  The hardest part
> is the major surgery of the driver code structure and the proper API
> usages.  This needs the help from the subsystem people, and it's
> easier if the coordination is taken earlier, IMO.
>

Looking at the MAINTAINERS file for staging entries, it appears some
staging drivers
are missing sub-system mailing list. Foe example this one:

FBTFT Framebuffer drivers
M:      Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
S:      Maintained
F:      drivers/staging/fbtft/

No L: for this driver

I found a few others.

Maybe the first step is to add sub-system and/or linux-kernel@vger.kernel.org
At least sub-system maintainers will be aware of the drivers when
minor cleanups happen.

thanks,
-- Shuah

> _______________________________________________
> Ksummit-discuss mailing list
> Ksummit-discuss@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/ksummit-discuss

  reply	other threads:[~2018-09-05 14:59 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-05 13:35 Takashi Iwai
2018-09-05 13:55 ` Dan Carpenter
2018-09-05 14:03   ` Takashi Iwai
2018-09-05 14:20     ` Greg KH
2018-09-05 14:41       ` Takashi Iwai
2018-09-05 14:59         ` Shuah Khan [this message]
2018-09-05 14:51       ` Andrew Lunn
2018-09-05 14:59       ` Joe Perches
2018-09-05 14:08   ` Sean Paul
2018-09-05 14:22     ` Greg KH
2018-09-05 14:29       ` Sean Paul
2018-09-05 15:35         ` Daniel Vetter
2018-09-05 16:21 ` James Bottomley
2018-09-05 16:35   ` Daniel Vetter
2018-09-07 19:44 ` Mauro Carvalho Chehab
2018-09-08  8:45   ` Jonathan Cameron
2018-09-10 18:49     ` Takashi Iwai
2018-09-10 18:52   ` Takashi Iwai
2018-09-10 18:58     ` Laurent Pinchart
2018-09-10 19:22       ` Tim.Bird
2018-09-10 20:51         ` Laurent Pinchart
2018-09-11  0:30         ` Mauro Carvalho Chehab
2018-09-11  9:13         ` Greg KH

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='CAKocOON-Kp1ps6GJhk9GruPkXTM7UpJ66o_=LQQLObM4-uowoQ@mail.gmail.com' \
    --to=shuahkhan@gmail.com \
    --cc=dan.carpenter@oracle.com \
    --cc=ksummit-discuss@lists.linuxfoundation.org \
    --cc=shuah@kernel.org \
    --cc=tiwai@suse.de \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox