Skip to content

Commit

Permalink
pinctrl-bcm2835: Only request the interrupts listed in the DTB
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Phil Elwell authored and popcornmix committed Jun 7, 2015
1 parent 9276516 commit d1f5e57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pinctrl/pinctrl-bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,8 @@ static int bcm2835_pinctrl_probe(struct platform_device *pdev)
int len;
char *name;
pc->irq[i] = irq_of_parse_and_map(np, i);
if (pc->irq[i] == 0)
break;
pc->irq_data[i].pc = pc;
pc->irq_data[i].irqgroup = i;

Expand Down

0 comments on commit d1f5e57

Please sign in to comment.