linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: OMAP2+: move gpmc headers to include/linux/platform_data
Date: Tue, 12 Nov 2013 14:12:12 -0800	[thread overview]
Message-ID: <20131112221212.GU15154@atomide.com> (raw)
In-Reply-To: <5282A427.9070300@collabora.co.uk>

* Javier Martinez Canillas <javier.martinez@collabora.co.uk> [131112 13:58]:
> On 11/12/2013 09:51 PM, Ezequiel Garcia wrote:
> > 
> > I'm not too convinced about the above diffstat. Maybe you can try a
> > a better approach of making the move by: 1) renaming/moving a file,
> > using 'git format-patch -M' and 2) then make the necessary changes
> > in the new place.
> > 
> > Or, if the above ends up not fully bisectable you can try first (2)
> > then (1).
> >
> > What bothers me most is seeing things like this:
> > 
> >   arch/arm/mach-omap2/gpmc-nand.h                  |  27 ---
> >   arch/arm/mach-omap2/gpmc.h                       | 231 -----------------------
> >   include/linux/platform_data/gpmc-nand-omap.h     |  27 +++
> >   include/linux/platform_data/gpmc-omap.h          | 231 +++++++++++++++++++++++
> > 
> > What do you think?
> > 
> 
> Agreed, I completely forgot about -M when generating the patches.
> 
> I'll wait to see what Tony thinks about this approach to take the gpmc driver
> outside of mach-omap2 and send a v2 addressing the issues you pointed out.

Well the headers in include/linux/platform_data should only
contain platform data passed to the driver. So you should
keep arch/arm/mach-omap2 specific stuff in the local headers,
then have the driver specific stuff private to the drivers,
and then have separate minimal platform data headers.

Please also try to avoid patching all the board-*.c files if
possible by keeping the the local headers in place as the board
files will be going away for v3.14 anyways. You can include
the new platform data header from those local files as that
cuts down extra churn in the board-*.c files a bit ;)

Regards,

Tony

  reply	other threads:[~2013-11-12 22:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-09 16:34 [PATCH 1/2] ARM: OMAP2+: remove unnecesary include in gpmc driver Javier Martinez Canillas
2013-11-09 16:34 ` [PATCH 2/2] ARM: OMAP2+: move gpmc headers to include/linux/platform_data Javier Martinez Canillas
2013-11-12 20:51   ` Ezequiel Garcia
2013-11-12 21:56     ` Javier Martinez Canillas
2013-11-12 22:12       ` Tony Lindgren [this message]
2013-11-13  0:05         ` Javier Martinez Canillas

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=20131112221212.GU15154@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-arm-kernel@lists.infradead.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).