Teach pegasus driver to ignore bluetoother adapters with clashing Vendor:Product IDs
Subsystems (4)
PATCH 1/1 Teach pegasus driver to ignore bluetoother adapters with clashing Vendor:Product IDs
Hi,
I submitted this patch months ago and then forgot about it, but I've noticed that it hasn't been picked up so I've regenerated it against 2.6.31.
Short description:
The Belkin F8T012xx1 bluetooth adaptor has the same vendor and product IDs as the Belkin F5D5050, so we need to teach the pegasus driver to ignore adaptors belonging to the "Wireless" class 0xE0. For this one case anyway, seeing as pegasus is a driver for "Wired" adaptors.
Cheers,
Chris
drivers/net/usb/pegasus.h renamed from drivers/net/usb/pegasus.h.orig +5 -1
@@ -202,7 +202,11 @@ DEFAULT_GPIO_RESET | PEGASUS_II ) PEGASUS_DEV( "Allied Telesyn Int. AT-USB100", VENDOR_ALLIEDTEL, 0xb100, DEFAULT_GPIO_RESET | PEGASUS_II ) -PEGASUS_DEV( "Belkin F5D5050 USB Ethernet", VENDOR_BELKIN, 0x0121, +/* +* Distinguish between this Belkin adaptor and the Belkin bluetooth adaptors +* with the same product IDs by checking the device class too. +*/ +PEGASUS_DEV_CLASS ("Belkin F5D5050 USB Ethernet" ,VENDOR_BELKIN ,0x0121 ,0x00 , DEFAULT_GPIO_RESET | PEGASUS_II )PEGASUS_DEV ("Billionton USB-100" ,VENDOR_BILLIONTON ,0x0986 ,DEFAULT_GPIO_RESET )
drivers/net/usb/pegasus.c renamed from drivers/net/usb/pegasus.c.orig +13 -0
@@ -62,8 +62,11 @@static struct usb_eth_dev usb_dev_id[] = { #define PEGASUS_DEV(pn, vid, pid, flags) \ {.name = pn, .vendor = vid, .device = pid, .private = flags}, +#define PEGASUS_DEV_CLASS(pn, vid, pid, dclass, flags) \ + PEGASUS_DEV(pn, vid, pid, flags) #include "pegasus.h" #undef PEGASUS_DEV +#undef PEGASUS_DEV_CLASS {NULL ,0 ,0 ,0 }, {NULL ,0 ,0 ,0 } };
@@ -71,8 +74,18 @@static struct usb_device_id pegasus_ids[] = { #define PEGASUS_DEV(pn, vid, pid, flags) \ {.match_flags =USB_DEVICE_ID_MATCH_DEVICE , .idVendor = vid, .idProduct = pid}, +/* +* The Belkin F8T012xx1 bluetooth adaptor has the same vendor and product +* IDs as the Belkin F5D5050, so we need to teach the pegasus driver to +* ignore adaptors belonging to the "Wireless" class 0xE0. For this one +* case anyway, seeing as the pegasus is for "Wired" adaptors. +*/ +#define PEGASUS_DEV_CLASS(pn, vid, pid, dclass, flags) \ + {.match_flags = (USB_DEVICE_ID_MATCH_DEVICE |USB_DEVICE_ID_MATCH_DEV_CLASS ), \ + .idVendor = vid, .idProduct = pid, .bDeviceClass = dclass}, #include "pegasus.h" #undef PEGASUS_DEV +#undef PEGASUS_DEV_CLASS {}, {} };
A message that is not in the archive (sent off-list or not yet received): 910710.29413.qm-7brg08ZX0I2B9c0Qi4KiSl5cfvJIxWXgQQ4Iyu8u01E@public.gmane.org
David Miller
AppliedFrom: Chris Rankin <rankincj-/[email protected]>
Date: Sun, 11 Oct 2009 06:57:50 -0700 (PDT)
Quoted 10 lines
I submitted this patch months ago and then forgot about it, but I've noticed that it hasn't been picked up so I've regenerated it against 2.6.31.
Short description:
The Belkin F8T012xx1 bluetooth adaptor has the same vendor and product IDs as the Belkin F5D5050, so we need to teach the pegasus driver to ignore adaptors belonging to the "Wireless" class
0xE0. For this one case anyway, seeing as pegasus is a driver for "Wired" adaptors.
Applied, but please put your Signed-off-by: here at the end of your commit message rather than after the patch.
Putting it after the patch makes it more difficult for automated tools to pick it up, thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html