]> git.baikalelectronics.ru Git - kernel.git/commit
gpio/gpiolib: Forbid irqchip default trigger if probed over DT
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 7 Sep 2016 08:12:11 +0000 (09:12 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 12 Sep 2016 09:05:03 +0000 (11:05 +0200)
commitf948622cb966e06920b575f097fa4d8eb44d97fa
tree95c9739de010ba9960924b50a0b4dbb1fffb8f4e
parentaeda5a07d868afd109582da1721735e8a49b9491
gpio/gpiolib: Forbid irqchip default trigger if probed over DT

Using a default trigger is a bad idea if using DT to configure
interrupts, as the device's interrupt specifier will always contain
the trigger configuration.

Let's warn about that particular situation, and revert to not
having a default. Hopefully, the couple of drivers still using
this feature will quickly be fixed.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c