]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: tegra186: Support multi-socket devices
authorPrathamesh Shete <pshete@nvidia.com>
Tue, 17 Feb 2026 08:14:31 +0000 (08:14 +0000)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 23 Feb 2026 09:39:33 +0000 (10:39 +0100)
commit2c299030c6813eaa9ef95773c64d65c50fa706ac
tree2741fcc941f9aad12179780a194ea51d73791137
parent2423e336d94868f0d2fcd81a87b90c5ea59736e0
gpio: tegra186: Support multi-socket devices

On Tegra platforms, multiple SoC instances may be present with each
defining the same GPIO name. For such devices, this results in
duplicate GPIO names.

When the device has a valid NUMA node, prepend the NUMA node ID
to the GPIO name prefix. The node ID identifies each socket,
ensuring GPIO line names remain distinct across multiple sockets.

Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260217081431.1208351-2-pshete@nvidia.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-tegra186.c