USB: gadget: ether: LF1000 should use simple cdc subset wiz
authorMarkus Rathgeb <maggu2810@web.de>
Sun, 11 Apr 2010 17:11:39 +0000 (19:11 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 12 Apr 2010 09:43:16 +0000 (12:43 +0300)
Patch to support ethernet over USB for the LF1000 (used by
e.g. gp2x wiz handheld).
Taken from:
http://www.gp32x.com/board/index.php?/topic/50468-howto-wiz-usb-ethernet-with-stock-usb-cable/

Signed-off-by: Markus Rathgeb <maggu2810@web.de>
drivers/usb/gadget/ether.c

index 826bc51..cc023ad 100644 (file)
@@ -266,6 +266,10 @@ MODULE_PARM_DESC(host_addr, "Host Ethernet Address");
 /* For CDC-incapable hardware, choose the simple cdc subset.
  * Anything that talks bulk (without notable bugs) can do this.
  */
+#ifdef CONFIG_USB_GADGET_LF1000
+#define DEV_CONFIG_SUBSET
+#endif
+
 #ifdef CONFIG_USB_GADGET_PXA2XX
 #define        DEV_CONFIG_SUBSET
 #endif