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)
commitbf2a69de81908f36a5853b36cc2afbd976856e3b
tree9d047cbd26f16b48f9b13f654a819efcaa92268d
parent6f81ff04224bd25827fd74b0f0529d62b597e741
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