From: Wojtek Kaniewski Date: Fri, 8 Dec 2006 17:39:36 +0000 (-0800) Subject: USB: at91_udc: allow drivers that support high speed X-Git-Tag: firefly_0821_release~31823^2~7 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc92c32aa21cf2e8808f8cff0be0a2a653652e92;p=firefly-linux-kernel-4.4.55.git USB: at91_udc: allow drivers that support high speed This patch allows gadget drivers that support high speed (e.g. gadgetfs) to work properly with at91_udc. Fix suggested by Milan Svoboda in http://marc.theaimsgroup.com/?l=linux-usb-devel&m=115822184711817 Signed-off-by: Wojtek Kaniewski Acked-by: David Brownell Cc: Andrew Victor Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index c8954a6ddf8c..38a2e113e705 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c @@ -1579,7 +1579,7 @@ int usb_gadget_register_driver (struct usb_gadget_driver *driver) int retval; if (!driver - || driver->speed != USB_SPEED_FULL + || driver->speed < USB_SPEED_FULL || !driver->bind || !driver->setup) { DBG("bad parameter.\n");