From bebb72556983b5900217fc7ee8cbbb443e77932a Mon Sep 17 00:00:00 2001 From: Markus Rathgeb Date: Sun, 11 Apr 2010 19:11:39 +0200 Subject: [PATCH] USB: gadget: ether: LF1000 should use simple cdc subset 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 --- drivers/usb/gadget/ether.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index 826bc51cdd08..cc023ad8f2d3 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -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 -- 2.39.2