]> git.baikalelectronics.ru Git - kernel.git/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)
commitb120d040509534fb4906b76a1e91c613b3bb2c62
treeeae213d2748e765761ebbbed15afa2d99a5bf74f
parentdbb008736a8c113ef1e12b4e4b4351fac2a15ede
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