summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorPrathamesh Shete <pshete@nvidia.com>2025-03-06 10:35:42 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 14:33:34 +0200
commit77fedd8ae487da1255421386e5e6c7ae9a11b384 (patch)
treef838b23842df6ca2dd1843ab2b08da23fd7e73a3 /drivers/clk
parentae450da3e9a4dbd36e8e71ba2f953644cd929c36 (diff)
downloadlinux-77fedd8ae487da1255421386e5e6c7ae9a11b384.tar.gz
linux-77fedd8ae487da1255421386e5e6c7ae9a11b384.tar.bz2
linux-77fedd8ae487da1255421386e5e6c7ae9a11b384.zip
pinctrl: tegra: Set SFIO mode to Mux Register
[ Upstream commit 17013f0acb322e5052ff9b9d0fab0ab5a4bfd828 ] Tegra devices have an 'sfsel' bit field that determines whether a pin operates in SFIO (Special Function I/O) or GPIO mode. Currently, tegra_pinctrl_gpio_disable_free() sets this bit when releasing a GPIO. However, tegra_pinctrl_set_mux() can be called independently in certain code paths where gpio_disable_free() is not invoked. In such cases, failing to set the SFIO mode could lead to incorrect pin configurations, resulting in functional issues for peripherals relying on SFIO. This patch ensures that whenever set_mux() is called, the SFIO mode is correctly set in the Mux Register if the 'sfsel' bit is present. This prevents situations where the pin remains in GPIO mode despite being configured for SFIO use. Fixes: 971dac7123c7 ("pinctrl: add a driver for NVIDIA Tegra") Signed-off-by: Prathamesh Shete <pshete@nvidia.com> Link: https://lore.kernel.org/20250306050542.16335-1-pshete@nvidia.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk')
0 files changed, 0 insertions, 0 deletions