Skip to content

Commit d1f5e57

Browse files
Phil Elwellpopcornmix
authored andcommitted
pinctrl-bcm2835: Only request the interrupts listed in the DTB
Although the GPIO controller can generate three interrupts (four counting the common one), the device tree files currently only specify two. In the absence of the third, simply don't register that interrupt (as opposed to registering 0), which has the effect of making it impossible to generate interrupts for GPIOs 46-53 which, since they share pins with the SD card interface, is unlikely to be a problem.
1 parent 9276516 commit d1f5e57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pinctrl/pinctrl-bcm2835.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,8 @@ static int bcm2835_pinctrl_probe(struct platform_device *pdev)
10361036
int len;
10371037
char *name;
10381038
pc->irq[i] = irq_of_parse_and_map(np, i);
1039+
if (pc->irq[i] == 0)
1040+
break;
10391041
pc->irq_data[i].pc = pc;
10401042
pc->irq_data[i].irqgroup = i;
10411043

0 commit comments

Comments
 (0)