mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
When using gpio_set_flags_by_mask() to modify a GPIO pin setting, the former code was not able to revert an open-drain GPIO into push-pull mode (the other way round was working). Fix it to be able to transition in each direction. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=all BUG=none TEST=on Twinkie, run "tw res none RP3A0" then "adc" and see the RP3A0 GPIO set to 1 and pulling the CC to 3.3V. Change-Id: Ic2d8ed95ea21b21d261a12ba298931d8bd5e6919 Reviewed-on: https://chromium-review.googlesource.com/231150 Reviewed-by: Vic Yang <victoryang@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>