Skip to contentSkip to conversation

usb: host: xhci-tegra: fix tegra_xusb_get_phy()

PATCH New JC Kuo 1 participant 1 message Aug 11, 2020

Subsystems (3)
lore
Share & tools
lore

JC Kuo

author
#0 lore raw

PATCH 1/1 usb: host: xhci-tegra: fix tegra_xusb_get_phy()

tegra_xusb_get_phy() should take input argument "name".

---
 drivers/usb/host/xhci-tegra.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/xhci-tegra.c +1 -1
index 014d79334f50..455b5ce67c7a 100644
@@ -1136,7 +1136,7 @@ static struct phy *tegra_xusb_get_phy(struct tegra_xusb *tegra, char *name,
 	unsigned int i, phy_count = 0;
 
 	for (i = 0; i < tegra->soc->num_types; i++) {
-		if (!strncmp(tegra->soc->phy_types[i].name, "usb2",
+		if (!strncmp(tegra->soc->phy_types[i].name, name,
 							    strlen(name)))
 			return tegra->phys[phy_count+port];
 
Signature · 1 line
2.25.1