mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
usb: ehci: using wIndex + 1 for hub port
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+. Cc: stable@vger.kernel.org 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>
This commit is contained in:
parent
a7e69ddb10
commit
5cbcc35e5b
@ -1230,7 +1230,7 @@ int ehci_hub_control(
|
||||
if (selector == EHSET_TEST_SINGLE_STEP_SET_FEATURE) {
|
||||
spin_unlock_irqrestore(&ehci->lock, flags);
|
||||
retval = ehset_single_step_set_feature(hcd,
|
||||
wIndex);
|
||||
wIndex + 1);
|
||||
spin_lock_irqsave(&ehci->lock, flags);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user