1 From 5ca57da3402b856986ac1e1ce316937207f6cbad Mon Sep 17 00:00:00 2001
2 From: mokopatches <mokopatches@openmoko.org>
3 Date: Wed, 16 Jul 2008 14:44:50 +0100
4 Subject: [PATCH] g_ether-vendor_product.patch
5 Use FIC's own USB Vendor ID rather than NetChip's
7 Yes, we could solve this by some modprobe.conf parameters, but I'd like to
8 rather not rely on this.
10 drivers/usb/gadget/ether.c | 11 ++++-------
11 1 files changed, 4 insertions(+), 7 deletions(-)
13 diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c
14 index 066a3e7..a474b0d 100644
15 --- a/drivers/usb/gadget/ether.c
16 +++ b/drivers/usb/gadget/ether.c
17 @@ -134,11 +134,8 @@ struct eth_dev {
18 * Instead: allocate your own, using normal USB-IF procedures.
21 -/* Thanks to NetChip Technologies for donating this product ID.
22 - * It's for devices with only CDC Ethernet configurations.
24 -#define CDC_VENDOR_NUM 0x0525 /* NetChip */
25 -#define CDC_PRODUCT_NUM 0xa4a1 /* Linux-USB Ethernet Gadget */
26 +#define CDC_VENDOR_NUM 0x1457 /* First International Computer */
27 +#define CDC_PRODUCT_NUM 0x5117 /* Linux-USB Ethernet Gadget */
29 /* For hardware that can't talk CDC, we use the same vendor ID that
30 * ARM Linux has used for ethernet-over-usb, both with sa1100 and
31 @@ -159,8 +156,8 @@ struct eth_dev {
32 * used with CDC Ethernet, Linux 2.4 hosts will need updates to choose
33 * the non-RNDIS configuration.
35 -#define RNDIS_VENDOR_NUM 0x0525 /* NetChip */
36 -#define RNDIS_PRODUCT_NUM 0xa4a2 /* Ethernet/RNDIS Gadget */
37 +#define RNDIS_VENDOR_NUM 0x1457 /* NetChip */
38 +#define RNDIS_PRODUCT_NUM 0x5122 /* Ethernet/RNDIS Gadget */
41 /* Some systems will want different product identifers published in the