USB: Fix s3c2410_udc usb speed handling
authorYauhen Kharuzhy <jekhor@gmail.com>
Fri, 17 Oct 2008 23:10:20 +0000 (23:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Oct 2008 21:21:21 +0000 (14:21 -0700)
commit1f41088c56185a338b1e916a95c2ce11e3996e6a
treebce48fb467038488c4ef8cfa2744c8d41ba9534c
parent48e12d72efd753818139a1870ee840ceb1a776e3
USB: Fix s3c2410_udc usb speed handling

commit f9e9cff613b8239ce9159735aa662c9c85b478bf upstream

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>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/s3c2410_udc.c