]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: pca953x: fix irq_stat not updated when irq is disabled (irq_mask not set)
authorPuyou Lu <puyou.lu@gmail.com>
Fri, 6 May 2022 08:06:30 +0000 (16:06 +0800)
committerBartosz Golaszewski <brgl@bgdev.pl>
Fri, 6 May 2022 14:59:29 +0000 (16:59 +0200)
commit876a0f98156e6beeabddc2dab2d0adc362045c45
treeadbe45905b1ca97329b099b261a851c6a0b46fd2
parent2f99f1ad719976f9cad8cb4c8d28302b7709de39
gpio: pca953x: fix irq_stat not updated when irq is disabled (irq_mask not set)

When one port's input state get inverted (eg. from low to hight) after
pca953x_irq_setup but before setting irq_mask (by some other driver such as
"gpio-keys"), the next inversion of this port (eg. from hight to low) will not
be triggered any more (because irq_stat is not updated at the first time). Issue
should be fixed after this commit.

Fixes: 9b6e5d45e5cf ("gpio: pca953x.c: add interrupt handling capability")
Signed-off-by: Puyou Lu <puyou.lu@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-pca953x.c