diff options
author | Prathamesh Shete <pshete@nvidia.com> | 2025-03-05 13:49:39 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2025-03-14 13:03:49 +0300 |
commit | c12bfa0fee65940b10ff5187349f76c6f6b1df9c (patch) | |
tree | b6451fe4535d95b917fcf29d17b3526c9050a9fb /lib/mpi/mpi-inline.c | |
parent | 4fd41e74bd6ad87085001b0f3e2883422fab499a (diff) | |
download | linux-c12bfa0fee65940b10ff5187349f76c6f6b1df9c.tar.xz |
pinctrl-tegra: Restore SFSEL bit when freeing pins
Each pin can be configured as a Special Function IO (SFIO) or GPIO,
where the SFIO enables the pin to operate in alternative modes such as
I2C, SPI, etc.
The current implementation sets all the pins back to SFIO mode
even if they were initially in GPIO mode. This can cause glitches
on the pins when pinctrl_gpio_free() is called.
Avoid these undesired glitches by storing the pin's SFIO/GPIO
state on GPIO request and restoring it on GPIO free.
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Link: https://lore.kernel.org/20250305104939.15168-2-pshete@nvidia.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions