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: NGlenn Langedock <Glenn.Langedock@barco.com> Signed-off-by: NMichal Simek <michal.simek@xilinx.com> Signed-off-by: NSrinivas Neeli <srinivas.neeli@xilinx.com> Signed-off-by: NBartosz Golaszewski <bgolaszewski@baylibre.com>
Showing
想要评论请 注册 或 登录