From: baruch@tkos.co.il (Baruch Siach)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] gpio: pl061: add DT binding support
Date: Wed, 3 Aug 2011 22:10:46 +0300 [thread overview]
Message-ID: <20110803191045.GA30783@tarshish> (raw)
In-Reply-To: <1312397661-3328-1-git-send-email-robherring2@gmail.com>
Hi Rob,
On Wed, Aug 03, 2011 at 01:54:21PM -0500, Rob Herring wrote:
> From: Rob Herring <rob.herring@calxeda.com>
>
> This adds devicetree binding support to the ARM pl061 driver removing the
> platform_data dependency. When DT binding is used, the gpio numbering is
> assigned dynamically. The interrupt assignment is converted to use the
> irq_domain infrastructure.
>
> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
> Cc: Grant Likely <grant.likely@secretlab.ca>
> ---
> drivers/gpio/gpio-pl061.c | 32 +++++++++++++++++++++++---------
> 1 files changed, 23 insertions(+), 9 deletions(-)
>
[snip]
> @@ -283,7 +295,7 @@ static int pl061_probe(struct amba_device *dev, const
> struct amba_id *id)
> * irq_chip support
> */
>
> - if (chip->irq_base == (unsigned) -1)
> + if (chip->irq_base == NO_IRQ)
Please update the comment at include/linux/amba/pl061.h as well.
> return 0;
>
> writeb(0, chip->base + GPIOIE); /* disable irqs */
> @@ -307,11 +319,13 @@ static int pl061_probe(struct amba_device *dev, const struct amba_id *id)
[snip]
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
next prev parent reply other threads:[~2011-08-03 19:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 18:54 [PATCH] gpio: pl061: add DT binding support Rob Herring
2011-08-03 19:10 ` Baruch Siach [this message]
2011-08-03 22:22 ` Grant Likely
2011-08-03 23:18 ` Rob Herring
2011-10-24 22:26 ` Grant Likely
2011-10-24 22:48 ` Rob Herring
2011-08-10 21:31 ` [PATCH v2] " Rob Herring
2011-08-11 6:36 ` Baruch Siach
2011-08-11 16:48 ` Rob Herring
2011-09-22 23:08 ` Rob Herring
2011-10-24 15:40 ` Rob Herring
2011-10-24 22:24 ` Grant Likely
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=20110803191045.GA30783@tarshish \
--to=baruch@tkos.co.il \
--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 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.