USB: Fix s3c2410_udc usb speed handling
authorYauhen Kharuzhy <jekhor@gmail.com>
Fri, 12 Sep 2008 16:02:23 +0000 (09:02 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
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 <jekhor@gmail.com>
Cc: stable <stable@kernel.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/s3c2410_udc.c