mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04: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: [email protected] Signed-off-by: Peter Chen <[email protected]> Acked-by: Alan Stern <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
1 parent
a7e69ddb10
commit
5cbcc35e5b
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user