mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
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>
This commit is contained in:
parent
ed0c7720d2
commit
32e7fea282
1 changed files with 1 additions and 1 deletions
|
@ -1349,7 +1349,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
|
||||||
int retval;
|
int retval;
|
||||||
|
|
||||||
if (!driver
|
if (!driver
|
||||||
|| driver->speed != USB_SPEED_FULL
|
|| driver->speed < USB_SPEED_FULL
|
||||||
|| !driver->bind
|
|| !driver->bind
|
||||||
|| !driver->disconnect
|
|| !driver->disconnect
|
||||||
|| !driver->setup)
|
|| !driver->setup)
|
||||||
|
|
Loading…
Reference in a new issue