Skip to content
Commit fdcfec11 authored by Glenn Langedock's avatar Glenn Langedock Committed by Bartosz Golaszewski
Browse files

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: default avatarGlenn Langedock <Glenn.Langedock@barco.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarSrinivas Neeli <srinivas.neeli@xilinx.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent 8346b92e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment