]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: gpio-mxc: Fix: higher 16 GPIOs usable as wake source
authorPhilipp Rosenberger <p.rosenberger@linutronix.de>
Wed, 12 Jul 2017 08:36:39 +0000 (10:36 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Aug 2017 08:37:06 +0000 (10:37 +0200)
commit4d0b3dcdf3b150927c5c27c32a64943229bbd8c9
treeadeb3d4eac3d1e7d54d7ffe06b3b8faf61515983
parent4b433564e1fceb80b8cfdc030fa366ad4cb3e0ed
gpio: gpio-mxc: Fix: higher 16 GPIOs usable as wake source

In the function gpio_set_wake_irq(), port->irq_high is only checked for
zero. As platform_get_irq() returns a value less then zero if no interrupt
was found, any gpio >= 16 was handled like an irq_high interrupt was
available. On iMX27 for example no high interrupt is available. This lead
to the problem that only some gpios (the lower 16) were useable as wake
sources.

Signed-off-by: Philipp Rosenberger <p.rosenberger@linutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c