Message ID | 20161208173228.16835-2-niklas.soderlund+renesas@ragnatech.se |
---|---|
State | New |
Headers | show |
Hi Niklas, Thank you for the patch. On Thursday 08 Dec 2016 18:32:27 Niklas Söderlund wrote: > This enables Runtime PM handling for interrupts. > > By setting the parent_device in struct irq_chip genirq will call the > pm_runtime_get/put APIs when an IRQ is requested/freed. > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> > --- > drivers/gpio/gpio-rcar.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c > index 2be48f5..3b77c10 100644 > --- a/drivers/gpio/gpio-rcar.c > +++ b/drivers/gpio/gpio-rcar.c > @@ -460,6 +460,7 @@ static int gpio_rcar_probe(struct platform_device *pdev) > > irq_chip = &p->irq_chip; > irq_chip->name = name; > + irq_chip->parent_device = dev; > irq_chip->irq_mask = gpio_rcar_irq_disable; > irq_chip->irq_unmask = gpio_rcar_irq_enable; > irq_chip->irq_set_type = gpio_rcar_irq_set_type;
On Thu, Dec 8, 2016 at 6:32 PM, Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> wrote: > This enables Runtime PM handling for interrupts. > > By setting the parent_device in struct irq_chip genirq will call the > pm_runtime_get/put APIs when an IRQ is requested/freed. > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Thu, Dec 8, 2016 at 6:32 PM, Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> wrote: > This enables Runtime PM handling for interrupts. > > By setting the parent_device in struct irq_chip genirq will call the > pm_runtime_get/put APIs when an IRQ is requested/freed. > > Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Patch applied with the ACKs. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 2be48f5..3b77c10 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -460,6 +460,7 @@ static int gpio_rcar_probe(struct platform_device *pdev) irq_chip = &p->irq_chip; irq_chip->name = name; + irq_chip->parent_device = dev; irq_chip->irq_mask = gpio_rcar_irq_disable; irq_chip->irq_unmask = gpio_rcar_irq_enable; irq_chip->irq_set_type = gpio_rcar_irq_set_type;
This enables Runtime PM handling for interrupts. By setting the parent_device in struct irq_chip genirq will call the pm_runtime_get/put APIs when an IRQ is requested/freed. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> --- drivers/gpio/gpio-rcar.c | 1 + 1 file changed, 1 insertion(+)