From: Simon Horman <horms@verge.net.au>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Magnus Damm <magnus.damm@gmail.com>,
linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org,
linus.walleij@linaro.org, grant.likely@secretlab.ca
Subject: Re: [PATCH 00/03] gpio: Renesas R-Car GPIO driver update
Date: Sat, 16 Mar 2013 09:50:28 +0100 [thread overview]
Message-ID: <20130316085027.GA4075@verge.net.au> (raw)
In-Reply-To: <1938905.m8UJXV94pZ@avalon>
On Thu, Mar 14, 2013 at 02:13:52PM +0100, Laurent Pinchart wrote:
> Hi Magnus,
>
> On Thursday 14 March 2013 13:23:46 Magnus Damm wrote:
> > On Wed, Mar 13, 2013 at 9:58 PM, Laurent Pinchart wrote:
> > > On Wednesday 13 March 2013 20:32:03 Magnus Damm wrote:
> > >> gpio: Renesas R-Car GPIO driver update
> > >>
> > >> [PATCH 01/03] gpio: Renesas R-Car GPIO driver V2
> > >> [PATCH 02/03] gpio: rcar: Use IRQCHIP_SET_TYPE_MASKED
> > >> [PATCH 03/03] gpio: rcar: Make use of devm functions
> > >>
> > >> This series updates the R-Car GPIO driver with various
> > >> changes kindly suggested by Laurent Pinchart.
> > >>
> > >> Patch [01/03] is a drop in replacement for V1 of the R-Car
> > >> GPIO driver. The flag in patch [02/03] is kept out of [01/03]
> > >> to avoid changing the behaviour of the driver between V1 and V2.
> > >> Also, devm support in [03/03] is kept out of [01/03] to make
> > >> sure back porting goes as smooth as possible.
> > >
> > > As I mentioned in a previous e-mail, all the devm_* functions used in
> > > 03/03 have been available since 2.6.30. Do you really need to port that
> > > driver to older kernels ?
Not that I am aware of.
Actually, I am not aware of any serious back-porting to anything
older than LTSI-3.4.25.
> > Well, it was earlier suggested to me that not using devm to begin with
> > is a safe way forward for back porting. Also, as the individual patch
> > shows, we save about 10 lines of code but add many more complex
> > dependencies.
> >
> > Simon, do you have any recommendation how for us regarding devm and
> > back porting?
I see devm_* in LTSI-3.4.25 so unless I am missing something I don't
think there will be back-porting implications for you writing your
code against those functions.
> > > Regarding 02/03, do you plan to squash it with 01/03 for the mainline
> > > submission ?
> >
> > Not unless someone puts a gun to my head. =) Of course, if a single
> > patch is really required then I will follow that, but I can't really
> > see why when we have a nice versioning control system that can help
> > our development in various ways.
> >
> > What is the reason behind you wanting to merge these patches?
> >
> > From my point of view, if any incremental patch was a bug fix then i
> > would of course request to fold it in, but in this case these are
> > feature patches that would be beneficial to keep as individual
> > commits. Keeping them separate allows us to bisect and also makes
> > partial back porting easier if needed.
>
> When submitting new drivers I usually try not to make the development history
> visible to mainline. It brings little additional value (beside possibly making
> backporting a bit easier, but in the devm_* case that shouldn't be a problem,
> unless Simon thinks otherwise) but adds review complexity, as reviewers need
> to validate the intermediate versions as well. More patches also mean more
> potential bisection breakages.
>
> In this case (assuming there would be no backporting issue) there's no need
> for mainline to see that we started with a version that didn't use devm_* and
> then modified the code. I see no added value in that.
+1
next prev parent reply other threads:[~2013-03-16 8:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-13 11:32 [PATCH 00/03] gpio: Renesas R-Car GPIO driver update Magnus Damm
2013-03-13 11:32 ` [PATCH 01/03] gpio: Renesas R-Car GPIO driver V2 Magnus Damm
2013-03-13 13:14 ` Laurent Pinchart
2013-03-14 4:11 ` Magnus Damm
2013-03-13 11:32 ` [PATCH 02/03] gpio: rcar: Use IRQCHIP_SET_TYPE_MASKED Magnus Damm
2013-03-13 11:32 ` [PATCH 03/03] gpio: rcar: Make use of devm functions Magnus Damm
2013-03-13 12:58 ` [PATCH 00/03] gpio: Renesas R-Car GPIO driver update Laurent Pinchart
2013-03-14 4:23 ` Magnus Damm
2013-03-14 13:13 ` Laurent Pinchart
2013-03-16 8:50 ` Simon Horman [this message]
2013-03-19 3:36 ` Magnus Damm
2013-03-19 15:01 ` Laurent Pinchart
2013-03-27 12:34 ` Linus Walleij
2013-03-27 14:44 ` Magnus Damm
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=20130316085027.GA4075@verge.net.au \
--to=horms@verge.net.au \
--cc=grant.likely@secretlab.ca \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.com \
/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