kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: johannes.thumshirn@men.de (Johannes Thumshirn)
To: kernelnewbies@lists.kernelnewbies.org
Subject: When to submit into drivers/staging
Date: Tue, 11 Feb 2014 11:16:42 +0100	[thread overview]
Message-ID: <20140211101642.GA27776@jtlinux> (raw)
In-Reply-To: <87d2ivgxun.fsf@nemi.mork.no>

On Mon, Feb 10, 2014 at 09:45:20AM +0100, Bj?rn Mork wrote:
> Johannes Thumshirn <johannes.thumshirn@men.de> writes:
>
> > Hi,
> >
> > I have a question regarding driver submission into mainline. I'm not exactly
> > sure if my driver is ready to be submittet into normal drivers or if it would be
> > better to submit it to staging first.
>
> New drivers do not normally go through staging.  If your driver is
> mostly following the kernel coding standards and using appropriate
> kernel interfaces, then, in my opinion, there is no reason to submit it
> to staging first.  I'd submit as a normal driver first, and then only
> consider staging if the initial feedback indicates that major changes
> are necessary before the driver is ready for mainline.
>
> My impression is that staging is primarily for code which was written
> without Linux mainline in mind.
>
> > Is there any recomendation when to submit to drivers/staging instead of drivers?
> > I've searched the archives but haven't found an answer to it. If you can instead
> > just point me to a document I'm fine.
>
> I believe Documentation/development-process/2.Process gives the best
> description of what staging is for:
>
> <quote>
> 2.4.1: STAGING TREES
>
> The kernel source tree contains the drivers/staging/ directory, where
> many sub-directories for drivers or filesystems that are on their way to
> being added to the kernel tree live.  They remain in drivers/staging while
> they still need more work; once complete, they can be moved into the
> kernel proper.  This is a way to keep track of drivers that aren't
> up to Linux kernel coding or quality standards, but people may want to use
> them and track development.
>
> Greg Kroah-Hartman currently maintains the staging tree.  Drivers that
> still need work are sent to him, with each driver having its own
> subdirectory in drivers/staging/.  Along with the driver source files, a
> TODO file should be present in the directory as well.  The TODO file lists
> the pending work that the driver needs for acceptance into the kernel
> proper, as well as a list of people that should be Cc'd for any patches to
> the driver.  Current rules require that drivers contributed to staging
> must, at a minimum, compile properly.
>
> Staging can be a relatively easy way to get new drivers into the mainline
> where, with luck, they will come to the attention of other developers and
> improve quickly.  Entry into staging is not the end of the story, though;
> code in staging which is not seeing regular progress will eventually be
> removed.  Distributors also tend to be relatively reluctant to enable
> staging drivers.  So staging is, at best, a stop on the way toward becoming
> a proper mainline driver.
> </quote>
>
> > The driver(s) in question is a bus driver for multi function FPGAs made by my
> > company and one first iio/adc driver using this bus. It was sucessfully tested
> > on x86 but is known to crash on powerpc because of my parser code (which will of
> > cause be fixed when submitting, even into staging).
>
> If it is a new class of driver then I guess that means that you will
> define some new APIs. Which is all the more reason to get it directly
> into mainline.  You cannot extend or define any kernel interfaces from
> staging.
>
>
> Bj?rn

Thanks for the answer Bj?rn. I wrote the driver to be submittable into mainline
and defined a new API, so I'll send directly to lkml when it has a good stable
point (hopefully the next 1-2 Weeks).

Thanks
	Johannes

      reply	other threads:[~2014-02-11 10:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-03 15:10 When to submit into drivers/staging Johannes Thumshirn
2014-02-10  8:45 ` Bjørn Mork
2014-02-11 10:16   ` Johannes Thumshirn [this message]

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=20140211101642.GA27776@jtlinux \
    --to=johannes.thumshirn@men.de \
    --cc=kernelnewbies@lists.kernelnewbies.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: 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;
as well as URLs for NNTP newsgroup(s).