summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorMichal Smulski <michal.smulski@ooma.com>2023-06-02 02:02:00 +0300
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-06-16 12:11:27 +0300
commit19b60f8410ad6b2c8e8bd7ec74a43ab8ede3de05 (patch)
tree896990cf6e5464d92bca8c72a07913999810806b /scripts/lib
parent61c65a8b50c22ef17839df6f342df44a5631400a (diff)
downloadlinux-19b60f8410ad6b2c8e8bd7ec74a43ab8ede3de05.tar.xz
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: Michal Smulski <michal.smulski@ooma.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions