commit | fdcfec11b215b3bbc9c20240739cf76be921cca1 | [log] [tgz] |
---|---|---|
author | Glenn Langedock <Glenn.Langedock@barco.com> | Wed Jun 17 17:07:21 2020 +0530 |
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Wed Jun 24 12:10:09 2020 +0200 |
tree | d2e637aeb3226c1d82fbaf276b2507b24a86a493 | |
parent | 8346b92ecddfae624b1dd4631e840fb98f5430cd [diff] |
gpio: zynq: protect direction in/out with a spinlock Fix race condition when changing the direction (in/out) of the GPIO pin. The read-modify-write sequence (as coded in the driver) isn't atomic and requires synchronization (spinlock). Signed-off-by: Glenn Langedock <Glenn.Langedock@barco.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Srinivas Neeli <srinivas.neeli@xilinx.com> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>