Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 654a55d3 authored by Lin Wang's avatar Lin Wang Committed by Greg Kroah-Hartman
Browse files

xhci: fix wrong port number reported when setting USB2.0 hardware LPM.



This patch fix wrong port number reported when trying to enable/disable
USB2.0 hardware LPM.

Signed-off-by: default avatarLin Wang <lin.x.wang@intel.com>
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6aba2ae7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4092,7 +4092,7 @@ int xhci_set_usb2_hardware_lpm(struct usb_hcd *hcd,
	field = le32_to_cpu(udev->bos->ext_cap->bmAttributes);
	field = le32_to_cpu(udev->bos->ext_cap->bmAttributes);


	xhci_dbg(xhci, "%s port %d USB2 hardware LPM\n",
	xhci_dbg(xhci, "%s port %d USB2 hardware LPM\n",
			enable ? "enable" : "disable", port_num);
			enable ? "enable" : "disable", port_num + 1);


	if (enable) {
	if (enable) {
		/* Host supports BESL timeout instead of HIRD */
		/* Host supports BESL timeout instead of HIRD */