Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: set explicit nesting on drivers

The ADNP, CrystalCove and WhiskeyCove are all nested GPIO
irqchips, but were avoiding to connect the parent IRQ to
the gpiochip. This works, but is kind of sloppy as the
child IRQs are not marked as having the parent IRQ as
parent.

Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Ajay Thomas <ajay.thomas.david.rajamanickam@intel.com>
Cc: Bin Gao <bin.gao@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+6
+2
drivers/gpio/gpio-adnp.c
··· 479 479 return err; 480 480 } 481 481 482 + gpiochip_set_nested_irqchip(chip, &adnp_irq_chip, adnp->client->irq); 483 + 482 484 return 0; 483 485 } 484 486
+2
drivers/gpio/gpio-crystalcove.c
··· 362 362 return retval; 363 363 } 364 364 365 + gpiochip_set_nested_irqchip(&cg->chip, &crystalcove_irqchip, irq); 366 + 365 367 return 0; 366 368 } 367 369
+2
drivers/gpio/gpio-wcove.c
··· 446 446 return ret; 447 447 } 448 448 449 + gpiochip_set_nested_irqchip(&wg->chip, &wcove_irqchip, virq); 450 + 449 451 return 0; 450 452 } 451 453