]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:23:14 +0000 (14:23 +0200)
commit62457a5e64ffc3491532faea9a98a11e9e8411b8
tree9643bb5adc0581ee17e5123db195859e9d420e8b
parentb82187056943e3a74d77d0be5484904f5c5efe83
gpio: pca953x: fix irq_stat not updated when irq is disabled (irq_mask not set)

BugLink: https://bugs.launchpad.net/bugs/1978240
commit dba785798526a3282cc4d0f0ea751883715dbbb4 upstream.

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: 89ea8bbe9c3e ("gpio: pca953x.c: add interrupt handling capability")
Signed-off-by: Puyou Lu <puyou.lu@gmail.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpio/gpio-pca953x.c