]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: mt7621-gpio: change lock place in irq mask and unmask functions
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 25 May 2018 16:54:51 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2018 09:17:05 +0000 (11:17 +0200)
commit24298a218e321cf54a5d7d7dce9bd0d393b2ac0c
tree293af41e102583939f2302c745ca55dace389504
parent7efcce04309260e8088e89ca2c0a33cff452ac5c
staging: mt7621-gpio: change lock place in irq mask and unmask functions

Functions mediatek_gpio_irq_umask mediatek_gpio_irq_unmask are
reading and modifying registers but only the write is being hold.
It should be a complete lock instead for those which are type of
"read-modify-write". This makes more sense.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-gpio/gpio-mt7621.c