Skip to content
Commit 19b60f84 authored by Michal Smulski's avatar Michal Smulski Committed by Bartosz Golaszewski
Browse files

gpio: mpc8xxx: latch GPIOs state on module load when configured as output



Qoriq and related devices allow reading out state of GPIO set as output.
However, currently on driver's init, all outputs are configured as driven
low. So, any changes to GPIO confiuration will drive all pins (configured
as output) as output-low.
This patch latches state of output GPIOs before any GPIO configuration
takes place. This preserves any output settings done prior to loading
the driver (for example, by u-boot).

Signed-off-by: default avatarMichal Smulski <michal.smulski@ooma.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 61c65a8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment