Commit a9cedf67702b5298f730e15ccda60753b9cb7f96

Authored by Peter Chen
Committed by Greg Kroah-Hartman
1 parent ebc8083c7f

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/usb/host/ehci-hub.c
... ... @@ -1239,7 +1239,7 @@
1239 1239 if (selector == EHSET_TEST_SINGLE_STEP_SET_FEATURE) {
1240 1240 spin_unlock_irqrestore(&ehci->lock, flags);
1241 1241 retval = ehset_single_step_set_feature(hcd,
1242   - wIndex);
  1242 + wIndex + 1);
1243 1243 spin_lock_irqsave(&ehci->lock, flags);
1244 1244 break;
1245 1245 }