brcm2708: update linux 4.4 patches to latest version
[openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0011-pinctrl-bcm2835-Only-request-the-interrupts-listed-i.patch
1 From 93b12e64d0e2a8a65189dedd667e00b0a0fab60a Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 26 Feb 2015 09:58:22 +0000
4 Subject: [PATCH 011/170] pinctrl-bcm2835: Only request the interrupts listed
5  in the DTB
6
7 Although the GPIO controller can generate three interrupts (four counting
8 the common one), the device tree files currently only specify two. In the
9 absence of the third, simply don't register that interrupt (as opposed to
10 registering 0), which has the effect of making it impossible to generate
11 interrupts for GPIOs 46-53 which, since they share pins with the SD card
12 interface, is unlikely to be a problem.
13 ---
14  drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 ++
15  1 file changed, 2 insertions(+)
16
17 --- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
18 +++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
19 @@ -1029,6 +1029,8 @@ static int bcm2835_pinctrl_probe(struct
20                 int len;
21                 char *name;
22                 pc->irq[i] = irq_of_parse_and_map(np, i);
23 +               if (pc->irq[i] == 0)
24 +                       break;
25                 pc->irq_data[i].pc = pc;
26                 pc->irq_data[i].irqgroup = i;
27