All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shawn Guo <shawn.guo@freescale.com>
To: Linus Walleij <linus.walleij@stericsson.com>
Cc: Grant Likely <grant.likely@secretlab.ca>,
	<linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Lee Jones <lee.jones@linaro.org>,
	Jonas Aaberg <jonas.aberg@stericsson.com>
Subject: Re: [PATCH 02/10] mach-u300: rewrite gpio driver, move to drivers/gpio
Date: Thu, 19 May 2011 16:56:39 +0800	[thread overview]
Message-ID: <20110519085638.GA26816@S2100-06.ap.freescale.net> (raw)
In-Reply-To: <1303910002-3333-1-git-send-email-linus.walleij@stericsson.com>

On Wed, Apr 27, 2011 at 03:13:22PM +0200, Linus Walleij wrote:
> From: Linus Walleij <linus.walleij@linaro.org>
> 
> This rewrites the U300 GPIO driver using gpiolib and the irq_chip
> abstractions, makes it runtime-configured rather than compile-time,
> and moves it to the drivers/gpio subsystem where it belongs,
> depopulating the ARM tree of one more driver.
> 
> Cc: Jonas Aaberg <jonas.aberg@stericsson.com>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---

I start working on moving mxs gpio (arch/arm/mach-mxs/gpio.c) into
driver/gpio, and I see the possibility to go a different approach
from U300 one posted here.

The common thing between these two hardwares is there are several
gpio ports implemented in one memory region. And it seems no problem
to treat all these gpio ports as one gpio chip, and we can use
platform data to specify port number, and calculate base address of
each port with shifting start address.  But I do not think this
approach is able to scale comparing to the one that we treat each
port as an independent gpio chip.

Looking at mxc gpio driver, we will see those gpio ports lay at the
discrete memory regions.  One port one chip approach works for both
cases, since sharing one memory region is just a special case of one
port one region case.  And most importantly, it will make gpio driver
clean and easy to see the common pattern among different gpio drivers.

-- 
Regards,
Shawn


WARNING: multiple messages have this Message-ID (diff)
From: shawn.guo@freescale.com (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 02/10] mach-u300: rewrite gpio driver, move to drivers/gpio
Date: Thu, 19 May 2011 16:56:39 +0800	[thread overview]
Message-ID: <20110519085638.GA26816@S2100-06.ap.freescale.net> (raw)
In-Reply-To: <1303910002-3333-1-git-send-email-linus.walleij@stericsson.com>

On Wed, Apr 27, 2011 at 03:13:22PM +0200, Linus Walleij wrote:
> From: Linus Walleij <linus.walleij@linaro.org>
> 
> This rewrites the U300 GPIO driver using gpiolib and the irq_chip
> abstractions, makes it runtime-configured rather than compile-time,
> and moves it to the drivers/gpio subsystem where it belongs,
> depopulating the ARM tree of one more driver.
> 
> Cc: Jonas Aaberg <jonas.aberg@stericsson.com>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---

I start working on moving mxs gpio (arch/arm/mach-mxs/gpio.c) into
driver/gpio, and I see the possibility to go a different approach
from U300 one posted here.

The common thing between these two hardwares is there are several
gpio ports implemented in one memory region. And it seems no problem
to treat all these gpio ports as one gpio chip, and we can use
platform data to specify port number, and calculate base address of
each port with shifting start address.  But I do not think this
approach is able to scale comparing to the one that we treat each
port as an independent gpio chip.

Looking at mxc gpio driver, we will see those gpio ports lay at the
discrete memory regions.  One port one chip approach works for both
cases, since sharing one memory region is just a special case of one
port one region case.  And most importantly, it will make gpio driver
clean and easy to see the common pattern among different gpio drivers.

-- 
Regards,
Shawn

  parent reply	other threads:[~2011-05-19  8:52 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-27 13:13 [PATCH 02/10] mach-u300: rewrite gpio driver, move to drivers/gpio Linus Walleij
2011-04-27 13:13 ` Linus Walleij
2011-04-27 18:23 ` H Hartley Sweeten
2011-04-27 18:23   ` H Hartley Sweeten
2011-04-28  7:07   ` Linus Walleij
2011-04-28  7:07     ` Linus Walleij
2011-04-28  7:10     ` Linus Walleij
2011-04-28  7:10       ` Linus Walleij
2011-04-28 17:41     ` H Hartley Sweeten
2011-04-28 17:41       ` H Hartley Sweeten
2011-05-13 14:51       ` Linus Walleij
2011-05-13 14:51         ` Linus Walleij
2011-05-19  8:56 ` Shawn Guo [this message]
2011-05-19  8:56   ` Shawn Guo
2011-05-19 12:21   ` Linus Walleij
2011-05-19 12:21     ` Linus Walleij
2011-05-19 13:56     ` Shawn Guo
2011-05-19 13:56       ` Shawn Guo
2011-05-19 19:11       ` Sascha Hauer
2011-05-19 19:11         ` Sascha Hauer
2011-05-19 19:30         ` Nicolas Pitre
2011-05-19 19:30           ` Nicolas Pitre
2011-05-20  3:18           ` Shawn Guo
2011-05-20  3:18             ` Shawn Guo
2011-05-20  3:43             ` Kyungmin Park
2011-05-20  3:43               ` Kyungmin Park
2011-05-20  3:54               ` Nicolas Pitre
2011-05-20  3:54                 ` Nicolas Pitre
2011-05-19 21:18         ` H Hartley Sweeten
2011-05-19 21:18           ` H Hartley Sweeten
2011-05-20  1:50           ` Jamie Iles
2011-05-20  1:50             ` Jamie Iles
2011-05-20 22:07             ` H Hartley Sweeten
2011-05-20 22:07               ` H Hartley Sweeten
2011-05-21 13:03               ` Jamie Iles
2011-05-21 13:03                 ` Jamie Iles
2011-05-20  7:01         ` Grant Likely
2011-05-20  7:01           ` Grant Likely
2011-05-20  7:47           ` Linus Walleij
2011-05-20  7:47             ` Linus Walleij
2011-05-19 11:11 ` Barry Song
2011-05-19 11:38   ` Barry Song
2011-05-19 11:38     ` Barry Song
2011-05-19 12:25     ` Linus Walleij
2011-05-19 12:25       ` Linus Walleij
2011-05-19 12:35       ` Barry Song
2011-05-19 12:35         ` Barry Song
2011-05-19 13:17         ` Linus Walleij
2011-05-19 13:17           ` Linus Walleij
2011-05-19 14:05           ` Barry Song
2011-05-19 14:05             ` Barry Song
2011-05-20  6:58             ` Grant Likely
2011-05-20  6:58               ` Grant Likely
2011-05-20  6:52       ` Grant Likely
2011-05-20  6:52         ` Grant Likely
2011-05-20  7:46         ` Linus Walleij
2011-05-20  7:46           ` Linus Walleij

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=20110519085638.GA26816@S2100-06.ap.freescale.net \
    --to=shawn.guo@freescale.com \
    --cc=grant.likely@secretlab.ca \
    --cc=jonas.aberg@stericsson.com \
    --cc=lee.jones@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.