From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 2/2] gpio/mxc: Change gpio-mxc into an upstanding gpio driver
Date: Mon, 6 Jun 2011 10:12:05 +0200 [thread overview]
Message-ID: <20110606081205.GC32632@pengutronix.de> (raw)
In-Reply-To: <20110606075241.GD10410@ponder.secretlab.ca>
On Mon, Jun 06, 2011 at 01:52:41AM -0600, Grant Likely wrote:
> On Mon, Jun 06, 2011 at 12:07:55AM +0800, Shawn Guo wrote:
> > The patch makes necessary changes on gpio-mxc as below to turn it
> > into an upstanding gpio driver.
> >
> > * Add a list to save all mx2 ports references, so that
> > mx2_gpio_irq_handler can walk through all interrupt status
> > registers
> >
> > * Use readl/writel to replace mach-specific accessors
> > __raw_readl/__raw_writel
> >
> > * Change mxc_gpio_init into mxc_gpio_probe function
> >
> > * Move "struct mxc_gpio_port" into gpio-mxc.c, as it needs not to
> > be public at all, and also make some other cleanup on
> > plat-mxc/include/mach/gpio.h at the same time
> >
> > And the patch then migrates mach-imx and mach-mx5 to the updated
> > driver by adding corresponding platform devices.
> >
> > Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
> > Acked-by: Olof Johansson <olof@lixom.net>
>
> Applied, thanks.
I'm not completely happy with this patch going through your tree. It
does massive changes to arch/arm/mach-*mx*, so expect merge conflicts
here.
Sascha
>
> g.
>
> > ---
> > arch/arm/mach-imx/mach-apf9328.c | 2 +
> > arch/arm/mach-imx/mach-armadillo5x0.c | 2 +
> > arch/arm/mach-imx/mach-bug.c | 2 +
> > arch/arm/mach-imx/mach-cpuimx27.c | 2 +
> > arch/arm/mach-imx/mach-cpuimx35.c | 2 +
> > arch/arm/mach-imx/mach-eukrea_cpuimx25.c | 2 +
> > arch/arm/mach-imx/mach-imx27_visstrim_m10.c | 2 +
> > arch/arm/mach-imx/mach-imx27ipcam.c | 2 +
> > arch/arm/mach-imx/mach-imx27lite.c | 2 +
> > arch/arm/mach-imx/mach-kzm_arm11_01.c | 2 +
> > arch/arm/mach-imx/mach-mx1ads.c | 2 +
> > arch/arm/mach-imx/mach-mx21ads.c | 2 +
> > arch/arm/mach-imx/mach-mx25_3ds.c | 2 +
> > arch/arm/mach-imx/mach-mx27_3ds.c | 2 +
> > arch/arm/mach-imx/mach-mx27ads.c | 2 +
> > arch/arm/mach-imx/mach-mx31_3ds.c | 2 +
> > arch/arm/mach-imx/mach-mx31ads.c | 2 +
> > arch/arm/mach-imx/mach-mx31lilly.c | 2 +
> > arch/arm/mach-imx/mach-mx31lite.c | 2 +
> > arch/arm/mach-imx/mach-mx31moboard.c | 2 +
> > arch/arm/mach-imx/mach-mx35_3ds.c | 2 +
> > arch/arm/mach-imx/mach-mxt_td60.c | 2 +
> > arch/arm/mach-imx/mach-pca100.c | 2 +
> > arch/arm/mach-imx/mach-pcm037.c | 2 +
> > arch/arm/mach-imx/mach-pcm038.c | 2 +
> > arch/arm/mach-imx/mach-pcm043.c | 2 +
> > arch/arm/mach-imx/mach-qong.c | 2 +
> > arch/arm/mach-imx/mach-scb9328.c | 2 +
> > arch/arm/mach-imx/mach-vpr200.c | 2 +
> > arch/arm/mach-imx/mm-imx1.c | 17 +-
> > arch/arm/mach-imx/mm-imx21.c | 21 +--
> > arch/arm/mach-imx/mm-imx25.c | 16 +-
> > arch/arm/mach-imx/mm-imx27.c | 21 +--
> > arch/arm/mach-imx/mm-imx31.c | 15 +-
> > arch/arm/mach-imx/mm-imx35.c | 15 +-
> > arch/arm/mach-mx5/board-cpuimx51.c | 2 +
> > arch/arm/mach-mx5/board-cpuimx51sd.c | 2 +
> > arch/arm/mach-mx5/board-mx50_rdp.c | 2 +
> > arch/arm/mach-mx5/board-mx51_3ds.c | 2 +
> > arch/arm/mach-mx5/board-mx51_babbage.c | 2 +
> > arch/arm/mach-mx5/board-mx51_efikamx.c | 2 +
> > arch/arm/mach-mx5/board-mx51_efikasb.c | 2 +
> > arch/arm/mach-mx5/board-mx53_evk.c | 2 +
> > arch/arm/mach-mx5/board-mx53_loco.c | 2 +
> > arch/arm/mach-mx5/board-mx53_smd.c | 2 +
> > arch/arm/mach-mx5/devices.c | 64 -------
> > arch/arm/mach-mx5/mm-mx50.c | 21 +--
> > arch/arm/mach-mx5/mm.c | 25 ++-
> > arch/arm/plat-mxc/devices.c | 11 ++
> > arch/arm/plat-mxc/devices/Makefile | 1 +
> > arch/arm/plat-mxc/devices/platform-gpio-mxc.c | 32 ++++
> > arch/arm/plat-mxc/include/mach/common.h | 12 ++-
> > arch/arm/plat-mxc/include/mach/devices-common.h | 2 +
> > arch/arm/plat-mxc/include/mach/gpio.h | 27 ---
> > drivers/gpio/gpio-mxc.c | 217 +++++++++++++++--------
> > 55 files changed, 358 insertions(+), 237 deletions(-)
> > create mode 100644 arch/arm/plat-mxc/devices/platform-gpio-mxc.c
> >
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2011-06-06 8:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-05 16:07 [PATCH v4 0/2] Move plat-mxc gpio driver into drivers/gpio Shawn Guo
2011-06-05 16:07 ` [PATCH v4 1/2] gpio/mxc: Move Freescale MXC gpio driver to drivers/gpio Shawn Guo
2011-06-06 7:51 ` Grant Likely
2011-06-05 16:07 ` [PATCH v4 2/2] gpio/mxc: Change gpio-mxc into an upstanding gpio driver Shawn Guo
2011-06-06 7:52 ` Grant Likely
2011-06-06 8:12 ` Sascha Hauer [this message]
2011-06-06 8:18 ` Grant Likely
2011-06-06 8:47 ` Sascha Hauer
2011-06-06 16:03 ` Grant Likely
2011-06-06 8:50 ` [PATCH v4 0/2] Move plat-mxc gpio driver into drivers/gpio Sascha Hauer
2011-06-06 12:22 ` Shawn Guo
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=20110606081205.GC32632@pengutronix.de \
--to=s.hauer@pengutronix.de \
--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).