]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: xilinx: Set value before changing direction
authorMichal Simek <michal.simek@xilinx.com>
Mon, 30 Jul 2018 08:02:53 +0000 (10:02 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 7 Aug 2018 09:03:43 +0000 (11:03 +0200)
commit5ecc3ad85595b28f896f6df395c6bb550008bc43
tree9d047cbd26f16b48f9b13f654a819efcaa92268d
parentd93dab701278f8c93b605d4cd1f6c1774ae89ec5
gpio: xilinx: Set value before changing direction

Set a value before changing gpio direction. This will ensure that the
old value is not propagated when direction has changed but new value is
not written yet.

Reported-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
drivers/gpio/xilinx_gpio.c