usb: ehci: using wIndex + 1 for hub port
authorPeter Chen <peter.chen@freescale.com>
Tue, 5 Aug 2014 00:28:19 +0000 (08:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Sep 2014 23:34:17 +0000 (16:34 -0700)
commita9cedf67702b5298f730e15ccda60753b9cb7f96
tree7a3515e0dc483d228c4885840c570ae4747a3f41
parentebc8083c7fe92a2a4ab8eed0572882c3dfd3746a
usb: ehci: using wIndex + 1 for hub port

commit 5cbcc35e5bf0eae3c7494ce3efefffc9977827ae upstream.

The roothub's index per controller is from 0, but the hub port index per hub
is from 1, this patch fixes "can't find device at roohub" problem for connecting
test fixture at roohub when do USB-IF Embedded Host High-Speed Electrical Test.

This patch is for v3.12+.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hub.c