I noticed some problems with the PXA 2xx UDC and the
RNDIS version of the ethernet-over-usb link:
- Static linking needs more than just two endpoints now
- The endpoint autoconfig misbehaves (sounds like what
Stefan reported a couple weeks ago)
This patch fixes those two problems, though there are
a couple others lurking too.
Please merge.
- Dave
--- 1.38/drivers/usb/gadget/Kconfig Wed Apr 14 19:54:52 2004
+++ edited/drivers/usb/gadget/Kconfig Wed May 19 20:52:50 2004
@@ -95,6 +95,7 @@
config USB_PXA2XX_SMALL
depends on USB_GADGET_PXA2XX
bool
+ default n if USB_ETH_RNDIS
default y if USB_ZERO
default y if USB_ETH
default y if USB_G_SERIAL
--- 1.3/drivers/usb/gadget/epautoconf.c Sat Mar 27 03:28:44 2004
+++ edited/drivers/usb/gadget/epautoconf.c Wed May 19 20:52:55 2004
@@ -96,7 +96,8 @@
/* for now, avoid PXA "interrupt-in";
* it's documented as never using DATA1.
*/
- if (gadget_is_pxa (gadget))
+ if (gadget_is_pxa (gadget)
+ && 'i' == tmp [1])
return 0;
break;
case USB_ENDPOINT_XFER_BULK: