]> git.itanic.dy.fi Git - linux-stable/commit
gpio: Don't fiddle with irqchips marked as immutable
authorMarc Zyngier <maz@kernel.org>
Tue, 19 Apr 2022 14:18:37 +0000 (15:18 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 19 Apr 2022 14:22:25 +0000 (15:22 +0100)
commit6c846d026d490b2383d395bc8e7b06336219667b
treeeae213d2748e765761ebbbed15afa2d99a5bf74f
parent3123109284176b1532874591f7c81f3837bbdc17
gpio: Don't fiddle with irqchips marked as immutable

In order to move away from gpiolib messing with the internals of
unsuspecting irqchips, add a flag by which irqchips advertise
that they are not to be messed with, and do solemnly swear that
they correctly call into the gpiolib helpers when required.

Also nudge the users into converting their drivers to the
new model.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220419141846.598305-2-maz@kernel.org
drivers/gpio/gpiolib.c
include/linux/irq.h
kernel/irq/debugfs.c