usb: host: xhci-tegra: otg usb2/usb3 port init
authorJC Kuo <jckuo@nvidia.com>
Tue, 11 Aug 2020 09:31:43 +0000 (17:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:42 +0000 (11:29 +0200)
commitc08e590b07e4e2b7a86cb6b7b45e4ac8c9e804e6
treedab52ac95a5e168d8e10e21d819a3c96bef569da
parent68adec4646bf187d76d8d07dc3ee3b0fbd5e0150
usb: host: xhci-tegra: otg usb2/usb3 port init

commit 316a2868bc269be8c6e69ccc3a1f902a3f518eb9 upstream.

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>
drivers/usb/host/xhci-tegra.c