]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
EHCI: fix off-by-one error in ehci_submit_root()
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sat, 27 Feb 2010 18:32:17 +0000 (21:32 +0300)
committerRemy Bohmer <linux@bohmer.net>
Thu, 8 Apr 2010 19:39:59 +0000 (21:39 +0200)
commite06a055bcd966adf62a5653c84db781915392e41
tree299fb689b13deb038b1cfec7004203cc6a904208
parent6d313c84ded168427240e62d108b6ba9afdcf535
EHCI: fix off-by-one error in ehci_submit_root()

USB devices on the 2nd port are not detected and I get the following message:

The request port(1) is not configured

That's with default CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS value of 2. 'req->index'
is 1-based, so the comparison in ehci_submit_root() can't be correct.

Signed-off-by: Sergei Shtylyov <sshtylyov@mvista.com>
drivers/usb/host/ehci-hcd.c