diff options
author | Lin Wang <bupt.wanglin@gmail.com> | 2014-05-08 18:25:54 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-20 03:03:24 +0200 |
commit | 654a55d34f880bb56b3cebab53771a09a404a1f8 (patch) | |
tree | 0a514be99b6c15800fe163eb874b5d8d9d036855 /drivers/usb/host | |
parent | Merge tag 'for-3.16' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon/... (diff) | |
download | linux-654a55d34f880bb56b3cebab53771a09a404a1f8.tar.xz linux-654a55d34f880bb56b3cebab53771a09a404a1f8.zip |
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: Lin Wang <lin.x.wang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 300836972faa..708cb29ef3f8 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -4092,7 +4092,7 @@ int xhci_set_usb2_hardware_lpm(struct usb_hcd *hcd, field = le32_to_cpu(udev->bos->ext_cap->bmAttributes); xhci_dbg(xhci, "%s port %d USB2 hardware LPM\n", - enable ? "enable" : "disable", port_num); + enable ? "enable" : "disable", port_num + 1); if (enable) { /* Host supports BESL timeout instead of HIRD */ |