USB: Fix s3c2410_udc usb speed handling
authorYauhen Kharuzhy <[email protected]>
Fri, 12 Sep 2008 16:02:23 +0000 (09:02 -0700)
committerGreg Kroah-Hartman <[email protected]>
Fri, 17 Oct 2008 21:40:58 +0000 (14:40 -0700)
commitf9e9cff613b8239ce9159735aa662c9c85b478bf
tree2d9c90e6904d6dcdb4d54b0efc36a315e8777ce1
parent36e893d25aa2abcae0f11ef263de0e8322641386
USB: Fix s3c2410_udc usb speed handling

The new composite framework revealed a weakness in the
s3c2410_udc driver gadget 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 (like g_ether).

Signed-off-by: Yauhen Kharuzhy <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/gadget/s3c2410_udc.c