]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pinctrl: tegra20: adjust pin type detection
authorSvyatoslav Ryhel <clamor95@gmail.com>
Fri, 6 Dec 2024 15:50:58 +0000 (17:50 +0200)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Wed, 12 Feb 2025 08:35:17 +0000 (10:35 +0200)
Pin detection on t20 depends on node name. With recent changes
in node naming, let's remove '_' to be safe about both '_' or
'-' use.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
drivers/pinctrl/tegra/pinctrl-tegra20.c

index d5171b8be235ee99919ad8240dd2bcb0b9d43079..d59b3ec7b5de0851dfeec1f931235b22f207501a 100644 (file)
@@ -97,9 +97,9 @@ static int tegra_pinctrl_set_state(struct udevice *dev, struct udevice *config)
                 * then actual pins setup (with node name prefix
                 * conf_*) and then drive setup.
                 */
-               if (!strncmp(child->name, "conf_", 5))
+               if (!strncmp(child->name, "conf", 4))
                        tegra_pinctrl_set_pin(child);
-               else if (!strncmp(child->name, "drive_", 6))
+               else if (!strncmp(child->name, "drive", 5))
                        debug("%s: drive configuration is not supported\n", __func__);
                else
                        tegra_pinctrl_set_func(child);