diff options
author | Grigoryev Denis <grigoryev@fastwel.ru> | 2018-05-04 16:53:18 +0000 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-05-23 11:47:26 +0200 |
commit | 0a70fe00efea7c6ac087a10aa57131e59d63e194 (patch) | |
tree | 34b2b86251c9e770813ce87a9f7998dc37ef4ab5 /drivers/spmi | |
parent | 060f3ebf6a9a4a92dd92149e6ebffae10679ed17 (diff) |
gpio: pca953x: Clear irq trigger type on irq shutdown
The driver stores the result of irq_set_type() in the internal variables
irq_trig_raise and irq_trig_fall, which later are used to determine
the GPIOs that must be re-configured as input. These variables retain their
value between gpiolib's export / unexport, resulting in an incorrect
state in some cases. The corresponding bits in the variables
irq_trig_raise and irq_trig_fall should be cleared in irq_shutdown().
Signed-off-by: Denis Grigoryev <grigoryev@fastwel.ru>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/spmi')
0 files changed, 0 insertions, 0 deletions