kernel: update 3.14 to 3.14.18
[openwrt.git] / target / linux / sunxi / patches-3.14 / 137-2-pinctrl-add-IRQCHIP_SKIP_SET_WAKE.patch
1 From 77f1265dd02dfd5dcaa0ebd6d3ea1d131bc095e2 Mon Sep 17 00:00:00 2001
2 From: Chen-Yu Tsai <wens@csie.org>
3 Date: Tue, 7 Jan 2014 19:01:29 +0800
4 Subject: [PATCH] pinctrl: sunxi: add IRQCHIP_SKIP_SET_WAKE flag for pinctrl
5  irq chip
6
7 The sunxi pinctrl irq chip driver does not support wakeup at the
8 moment. Adding IRQCHIP_SKIP_SET_WAKE lets the irqs work with drivers
9 using wakeup.
10
11 Also add a name to the irq chip.
12 ---
13  drivers/pinctrl/pinctrl-sunxi.c | 2 ++
14  1 file changed, 2 insertions(+)
15
16 --- a/drivers/pinctrl/pinctrl-sunxi.c
17 +++ b/drivers/pinctrl/pinctrl-sunxi.c
18 @@ -661,6 +661,8 @@ static struct irq_chip sunxi_pinctrl_irq
19         .irq_mask_ack   = sunxi_pinctrl_irq_mask_ack,
20         .irq_unmask     = sunxi_pinctrl_irq_unmask,
21         .irq_set_type   = sunxi_pinctrl_irq_set_type,
22 +       .name           = "sunxi-pio",
23 +       .flags          = IRQCHIP_SKIP_SET_WAKE,
24  };
25  
26  static void sunxi_pinctrl_irq_handler(unsigned irq, struct irq_desc *desc)