提交 bc92c32a 编写于 作者: W Wojtek Kaniewski 提交者: Greg Kroah-Hartman

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=115822184711817Signed-off-by: NWojtek Kaniewski <wojtekka@toxygen.net>
Acked-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Cc: Andrew Victor <andrew@sanpeople.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 4b87361d
...@@ -1579,7 +1579,7 @@ int usb_gadget_register_driver (struct usb_gadget_driver *driver) ...@@ -1579,7 +1579,7 @@ int usb_gadget_register_driver (struct usb_gadget_driver *driver)
int retval; int retval;
if (!driver if (!driver
|| driver->speed != USB_SPEED_FULL || driver->speed < USB_SPEED_FULL
|| !driver->bind || !driver->bind
|| !driver->setup) { || !driver->setup) {
DBG("bad parameter.\n"); DBG("bad parameter.\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册