Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: xhci: tegra: Remove redundant mutex when setting phy mode

As the PHY subsystem already synchronizes concurrent accesses to a PHY
instance with a core-internal mutex remove the driver specific mutex
synchronization.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Link: https://patch.msgid.link/20260127-diogo-tegra_phy-v2-2-787b9eed3ed5@tecnico.ulisboa.pt
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Diogo Ivo and committed by
Greg Kroah-Hartman
d0ef3c4a 45955006

-4
-4
drivers/usb/host/xhci-tegra.c
··· 1357 1357 1358 1358 dev_dbg(tegra->dev, "host mode %s\n", str_on_off(tegra->host_mode)); 1359 1359 1360 - mutex_lock(&tegra->lock); 1361 - 1362 1360 if (tegra->host_mode) 1363 1361 phy_set_mode_ext(phy, PHY_MODE_USB_OTG, USB_ROLE_HOST); 1364 1362 else 1365 1363 phy_set_mode_ext(phy, PHY_MODE_USB_OTG, USB_ROLE_NONE); 1366 - 1367 - mutex_unlock(&tegra->lock); 1368 1364 1369 1365 tegra->otg_usb3_port = tegra_xusb_padctl_get_usb3_companion(tegra->padctl, 1370 1366 tegra->otg_usb2_port);