* [folded] gpio-driver-for-primecell-pl061-gpio-controller-v5.patch removed from -mm tree
@ 2009-06-17 22:45 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2009-06-17 22:45 UTC (permalink / raw)
To: baruch, david-b, rmk, mm-commits
The patch titled
gpio-driver-for-primecell-pl061-gpio-controller-v5
has been removed from the -mm tree. Its filename was
gpio-driver-for-primecell-pl061-gpio-controller-v5.patch
This patch was dropped because it was folded into gpio-driver-for-primecell-pl061-gpio-controller.patch
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: gpio-driver-for-primecell-pl061-gpio-controller-v5
From: Baruch Siach <baruch@tkos.co.il>
Changes in v5:
- Use resource_size() as suggested by Linus Walleij
- Add a comment about the list member of pl061_gpio
Cc: David Brownell <david-b@pacbell.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
drivers/gpio/pl061.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff -puN drivers/gpio/pl061.c~gpio-driver-for-primecell-pl061-gpio-controller-v5 drivers/gpio/pl061.c
--- a/drivers/gpio/pl061.c~gpio-driver-for-primecell-pl061-gpio-controller-v5
+++ a/drivers/gpio/pl061.c
@@ -36,9 +36,12 @@
#define PL061_GPIO_NR 8
-#define PL061_REG_SIZE (4*1024)
-
struct pl061_gpio {
+ /* We use a list of pl061_gpio structs for each trigger IRQ in the main
+ * interrupts controller of the system. We need this to support systems
+ * in which more that one PL061s are connected to the same IRQ. The ISR
+ * interates through this list to find the source of the interrupt.
+ */
struct list_head list;
/* Each of the two spinlocks protects a different set of hardware
@@ -238,12 +241,13 @@ static int __init pl061_probe(struct amb
if (chip == NULL)
return -ENOMEM;
- if (!request_mem_region(dev->res.start, PL061_REG_SIZE, "pl061")) {
+ if (!request_mem_region(dev->res.start,
+ resource_size(&dev->res), "pl061")) {
ret = -EBUSY;
goto free_mem;
}
- chip->base = ioremap(dev->res.start, PL061_REG_SIZE);
+ chip->base = ioremap(dev->res.start, resource_size(&dev->res));
if (chip->base == NULL) {
ret = -ENOMEM;
goto release_region;
@@ -308,7 +312,7 @@ static int __init pl061_probe(struct amb
iounmap:
iounmap(chip->base);
release_region:
- release_mem_region(dev->res.start, PL061_REG_SIZE);
+ release_mem_region(dev->res.start, resource_size(&dev->res));
free_mem:
kfree(chip);
_
Patches currently in -mm which might be from baruch@tkos.co.il are
origin.patch
gpio-driver-for-primecell-pl061-gpio-controller.patch
gpio-driver-for-primecell-pl061-gpio-controller-v5.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-06-17 22:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-17 22:45 [folded] gpio-driver-for-primecell-pl061-gpio-controller-v5.patch removed from -mm tree akpm
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.