diff options
author | SangSu Park <sangsu@gmail.com> | 2009-01-01 11:11:14 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-01-07 13:00:13 -0500 |
commit | 32e7fea282b3765c64b935fa54f20ace437550a0 (patch) | |
tree | 63a7c0d77f8f5d8b78dc8855f84ed638fe8fe799 /drivers | |
parent | ed0c7720d23d5c82787e17cb02b28ca9eb11853d (diff) |
USB: Fix goku_udc usb speed handling
The usb gadget framework revealed weakness in the godu_udc
gadget driver register function. Instead of checking if
speed asked for was USB_LOW_SPEED upon usb_gadget_register()
to deny service, it checked only for USB_FULL_SPEED, thus
denying service to usb high speed capable gadgets.
Signed-off-by: SangSu Park <sangsu@gmail.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/goku_udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c index 60aa04847b18..63419c4d503c 100644 --- a/drivers/usb/gadget/goku_udc.c +++ b/drivers/usb/gadget/goku_udc.c | |||
@@ -1349,7 +1349,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver) | |||
1349 | int retval; | 1349 | int retval; |
1350 | 1350 | ||
1351 | if (!driver | 1351 | if (!driver |
1352 | || driver->speed != USB_SPEED_FULL | 1352 | || driver->speed < USB_SPEED_FULL |
1353 | || !driver->bind | 1353 | || !driver->bind |
1354 | || !driver->disconnect | 1354 | || !driver->disconnect |
1355 | || !driver->setup) | 1355 | || !driver->setup) |