]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/linux/files/usb-gadget-ether-compat.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / linux / files / usb-gadget-ether-compat.patch
1 --- kernel/drivers/usb/gadget/ether.c   2005-04-24 12:40:08.867411535 +0200
2 +++ /tmp/ether.c        2005-04-24 12:39:02.119093498 +0200
3 @@ -231,6 +231,16 @@
4  MODULE_PARM(host_addr, "s");
5  MODULE_PARM_DESC(host_addr, "Host Ethernet Address");
6  
7 +#ifdef CONFIG_USB_ETH_RNDIS
8 +/* setting it to 1 disables the RNDIS extension,
9 + *     needed to make g_ether compatible with usbnet from kernel < 2.6.10:
10 + * - simple vendor/product
11 + *     - just the CDC interface
12 + */
13 +static u8 __initdata compat_mode;
14 +MODULE_PARM(compat_mode, "b");
15 +MODULE_PARM_DESC(compat_mode, "non-zero value reverts to traditional usbnet compatibility (RNDIS disabled)");
16 +#endif
17  
18  /*-------------------------------------------------------------------------*/
19  
20 @@ -2336,6 +2346,10 @@
21  #endif
22  #ifndef        CONFIG_USB_ETH_RNDIS
23         rndis = 0;
24 +#else
25 +       if (compat_mode) {
26 +               rndis = 0;
27 +       }
28  #endif
29  
30         /* Because most host side USB stacks handle CDC Ethernet, that