mfd: arizona: Propagate irq_wake through to parent IRQ
Subsystems (2)
PATCH 1/1 mfd: arizona: Propagate irq_wake through to parent IRQ
If one of the internal Arizona IRQs is set as a wake source this needs to be propogated back to the actual IRQ line that the Arizona device is attached to.
--- drivers/mfd/arizona-irq.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
Hi,
Just thought I would resend this one on its own as it is a good bug fix and didn't need to depend on the other extra callbacks patch. And it would be good to get it in whilst I work on the IRQ stuff.
Thanks,
Charles
drivers/mfd/arizona-irq.c +8 -0
@@ -152,10 +152,18 @@ static void arizona_irq_disable(struct irq_data *data) { } +static int arizona_irq_set_wake (struct irq_data *data,unsigned int on) +{ +struct arizona *arizona =irq_data_get_irq_chip_data (data); + +return irq_set_irq_wake (arizona->irq, on); +} +static struct irq_chip arizona_irq_chip = { .name ="arizona" , .irq_disable = arizona_irq_disable, .irq_enable = arizona_irq_enable, + .irq_set_wake = arizona_irq_set_wake, }; static int arizona_irq_map(struct irq_domain *h, unsigned int virq,
Signature · 1 line
1.7.2.5
Lee Jones
AppliedQuoted 9 lines · Charles Keepax
If one of the internal Arizona IRQs is set as a wake source this needs to be propogated back to the actual IRQ line that the Arizona device is attached to.
Signed-off-by Charles Keepax <[email protected]>--- drivers/mfd/arizona-irq.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)
Quoted 8 lines
Hi,
Just thought I would resend this one on its own as it is a good bug fix and didn't need to depend on the other extra callbacks patch. And it would be good to get it in whilst I work on the IRQ stuff.
Thanks,
Charles
Applied, thanks.
Quoted 23 lines
drivers/mfd/arizona-irq.c +8
-0@@ -152,10 +152,18 @@ static void arizona_irq_disable(struct irq_data *data) { } +static int arizona_irq_set_wake (struct irq_data *data,unsigned int on) +{ +struct arizona *arizona =irq_data_get_irq_chip_data (data); + +return irq_set_irq_wake (arizona->irq, on); +} +static struct irq_chip arizona_irq_chip = { .name ="arizona" , .irq_disable = arizona_irq_disable, .irq_enable = arizona_irq_enable, + .irq_set_wake = arizona_irq_set_wake, }; static int arizona_irq_map(struct irq_domain *h, unsigned int virq,
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog