pinctrl: baytrail: Warn if direct IRQ GPIO set to output
authorEric Ernst <eric.ernst@linux.intel.com>
Thu, 12 Jun 2014 18:06:20 +0000 (11:06 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Jul 2014 12:08:35 +0000 (14:08 +0200)
commitff998356b644ebe723127bd9eec6040b59a4a4f6
tree33f8f7087d5a77afaf99533dd4be2790b6325e5f
parent1f978217a0c687a4cfed6ad698a3173826be4c3f
pinctrl: baytrail: Warn if direct IRQ GPIO set to output

For Baytrail, you should never set a GPIO set to direct_irq
to output mode.  When direct_irq_en is set for a GPIO, it is
tied directly to an APIC internally, and making the pad output
does not make any sense. Assert a WARN() in the event this happens.

Signed-off-by: Eric Ernst <eric.ernst@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-baytrail.c