Thread (3 messages) 3 messages, 3 authors, 2016-11-14

[PATCH 1/2] pinctrl: bcm2835: Fix ints for GPIOs 28-31 & 46-53

From: Stefan Wahren <hidden>
Date: 2016-11-14 15:33:35
Also in: linux-gpio, lkml

Hi Linus,

Am 14.11.2016 um 13:23 schrieb Linus Walleij:
quoted hunk ↗ jump to hunk
From: Phil Elwell <redacted>

Contrary to the documentation, the BCM2835 GPIO controller actually
has four interrupt lines - one each for the three IRQ groups and one
common. Confusingly, the GPIO interrupt groups don't correspond
directly with the GPIO control banks. Instead, GPIOs 0-27 generate IRQ
GPIO0, 28-45 IRQ GPIO1 and 46-53 IRQ GPIO2.

Awkwardly, the GPIOs for IRQ GPIO1 straddle two 32-entry GPIO banks,
so split out a function to process the interrupts for a single GPIO
bank.

Cc: Stefan Wahren <redacted>
Cc: Eric Anholt <redacted>
Cc: Stephen Warren <redacted>
Signed-off-by: Phil Elwell <redacted>
Signed-off-by: Linus Walleij <redacted>
---
I want to apply this to cater for my GPIOLIB_IRQCHIP
refactorings.
---
 drivers/pinctrl/bcm/pinctrl-bcm2835.c | 51 ++++++++++++++++++++++++++---------
 1 file changed, 39 insertions(+), 12 deletions(-)
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
index b2dd278f18b1..1d8fc104e26b 100644
--- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
+++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
...
quoted hunk ↗ jump to hunk
@@ -1076,6 +1102,7 @@ static struct platform_driver bcm2835_pinctrl_driver = {
 	.remove = bcm2835_pinctrl_remove,
 	.driver = {
 		.name = MODULE_NAME,
+		.owner = THIS_MODULE,
this is unnecessary. Please remove it.

Thanks for submitting these patches

Stefan
 		.of_match_table = bcm2835_pinctrl_match,
 	},
 };
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help