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: host: xhci-tegra: otg usb2/usb3 port init

tegra_xusb_init_usb_phy() should initialize "otg_usb2_port" and
"otg_usb3_port" with -EINVAL because "0" is a valid value
represents usb2 port 0 or usb3 port 0.

Signed-off-by: JC Kuo <jckuo@nvidia.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200811093143.699541-1-jckuo@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

JC Kuo and committed by
Greg Kroah-Hartman
316a2868 7b2816dd

+2
+2
drivers/usb/host/xhci-tegra.c
··· 1258 1258 1259 1259 INIT_WORK(&tegra->id_work, tegra_xhci_id_work); 1260 1260 tegra->id_nb.notifier_call = tegra_xhci_id_notify; 1261 + tegra->otg_usb2_port = -EINVAL; 1262 + tegra->otg_usb3_port = -EINVAL; 1261 1263 1262 1264 for (i = 0; i < tegra->num_usb_phys; i++) { 1263 1265 struct phy *phy = tegra_xusb_get_phy(tegra, "usb2", i);