summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc
diff options
context:
space:
mode:
authorPrathamesh Shete <pshete@nvidia.com>2025-03-05 13:49:39 +0300
committerLinus Walleij <linus.walleij@linaro.org>2025-03-14 13:03:49 +0300
commitc12bfa0fee65940b10ff5187349f76c6f6b1df9c (patch)
treeb6451fe4535d95b917fcf29d17b3526c9050a9fb /scripts/lib/kdoc
parent4fd41e74bd6ad87085001b0f3e2883422fab499a (diff)
downloadlinux-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 'scripts/lib/kdoc')
0 files changed, 0 insertions, 0 deletions