xhci: Pass port structure as parameter to xhci_disable_port().
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 2 Feb 2023 15:05:02 +0000 (17:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2023 15:44:42 +0000 (16:44 +0100)
commit6baf7e749ab3aa4fcfeef3a26e8ec2306572cd05
treee60470d1b410dfc31ddd233ff9fcb2623f2569b3
parent2996e9fc00c378987c18ecbafe5624581b18c0d6
xhci: Pass port structure as parameter to xhci_disable_port().

Pass the port structure to xhci_disable_port() instead of
address, index, and value.

re-read the port portsc value before disabling the port.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20230202150505.618915-9-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c