This patch allows gadget drivers that support high speed (e.g. gadgetfs)
to work properly with at91_udc.

Signed-off-by: Wojtek Kaniewski <[EMAIL PROTECTED]>
Cc: Andrew Victor <[EMAIL PROTECTED]>

---

Fix suggested by Milan Svoboda in
http://marc.theaimsgroup.com/?l=linux-usb-devel&m=115822184711817

--- linux-2.6.19.orig/drivers/usb/gadget/at91_udc.c     2006-12-08 
09:36:02.000000000 +0100
+++ linux-2.6.19/drivers/usb/gadget/at91_udc.c  2006-12-08 11:24:47.000000000 
+0100
@@ -1572,7 +1572,7 @@ int usb_gadget_register_driver (struct u
        int             retval;
 
        if (!driver
-                       || driver->speed != USB_SPEED_FULL
+                       || driver->speed < USB_SPEED_FULL
                        || !driver->bind
                        || !driver->unbind
                        || !driver->setup) {

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to