]> 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)
commit4e96a4ad32dd99f16a568f3c8498d3e3bffddd78
tree95c9739de010ba9960924b50a0b4dbb1fffb8f4e
parent5fdd342e08e815adc074480ad654dea21ee32f4d
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