Re: [PATCH 1/2] gpio: rcar: set IRQ chip parent_device
On Thu, Dec 8, 2016 at 6:32 PM, Niklas Söderlundwrote: > 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 Patch applied with the ACKs. Yours, Linus Walleij
Re: [PATCH 1/2] gpio: rcar: set IRQ chip parent_device
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öderlundReviewed-by: Laurent Pinchart > --- > 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 = >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; -- Regards, Laurent Pinchart
[PATCH 1/2] gpio: rcar: set IRQ chip parent_device
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--- 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 = >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; -- 2.10.2