From c63474bdc3d45e06d0b0f8a4dc8cace828b780d2 Mon Sep 17 00:00:00 2001 From: mokopatches Date: Wed, 19 Nov 2008 17:03:13 +0000 Subject: g_ether-vendor_product.patch Use FIC's own USB Vendor ID rather than NetChip's Yes, we could solve this by some modprobe.conf parameters, but I'd like to rather not rely on this. --- drivers/usb/gadget/ether.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'drivers/usb') diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index f48b6055772..bb1a9e8c4d9 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -122,11 +122,16 @@ static inline bool has_rndis(void) * Instead: allocate your own, using normal USB-IF procedures. */ +#if 0 /* Thanks to NetChip Technologies for donating this product ID. * It's for devices with only CDC Ethernet configurations. */ #define CDC_VENDOR_NUM 0x0525 /* NetChip */ #define CDC_PRODUCT_NUM 0xa4a1 /* Linux-USB Ethernet Gadget */ +#else +#define CDC_VENDOR_NUM 0x1457 /* First International Computer */ +#define CDC_PRODUCT_NUM 0x5117 /* Linux-USB Ethernet Gadget */ +#endif /* For hardware that can't talk CDC, we use the same vendor ID that * ARM Linux has used for ethernet-over-usb, both with sa1100 and @@ -147,8 +152,8 @@ static inline bool has_rndis(void) * used with CDC Ethernet, Linux 2.4 hosts will need updates to choose * the non-RNDIS configuration. */ -#define RNDIS_VENDOR_NUM 0x0525 /* NetChip */ -#define RNDIS_PRODUCT_NUM 0xa4a2 /* Ethernet/RNDIS Gadget */ +#define RNDIS_VENDOR_NUM 0x1457 /* NetChip */ +#define RNDIS_PRODUCT_NUM 0x5122 /* Ethernet/RNDIS Gadget */ /*-------------------------------------------------------------------------*/ -- cgit v1.2.3