Skip to contentSkip to conversation

cdc_ether/zaurus: Move Harmony 900 from cdc_ether to zaurus

PATCH Superseded Scott Talbert 2 participants 4 messages Feb 20, 2012 – Feb 21, 2012

Subsystems (4)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cdc_ether/zaurus: Move Harmony 900 from cdc_ether to zaurus

Hello,

The Logitech Harmony 900 remote control appears to use the pseudo-MDLM driver, rather than the standard one. This patch simply moves the device so that it gets picked up by the correct driver.

---
 drivers/net/usb/cdc_ether.c |    7 +++++++
 drivers/net/usb/zaurus.c    |    7 +++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
drivers/net/usb/cdc_ether.c +7 -0
index c924ea2..13919dd 100644
@@ -570,6 +570,13 @@ static const struct usb_device_id	products [] = {
 	.driver_info = (unsigned long)&wwan_info,
 },
 
+/* Logitech Harmony 900 - uses the pseudo-MDLM (BLAN) driver */
+{
+	USB_DEVICE_AND_INTERFACE_INFO(0x046d, 0xc11f, USB_CLASS_COMM,
+			USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE),
+	.driver_info		= 0,
+},
+
 /*
  * WHITELIST!!!
  *
drivers/net/usb/zaurus.c +7 -0
index 1a2234c..246b3bb 100644
@@ -349,6 +349,13 @@ static const struct usb_device_id	products [] = {
 	ZAURUS_MASTER_INTERFACE,
 	.driver_info = OLYMPUS_MXL_INFO,
 },
+
+/* Logitech Harmony 900 - uses the pseudo-MDLM (BLAN) driver */
+{
+	USB_DEVICE_AND_INTERFACE_INFO(0x046d, 0xc11f, USB_CLASS_COMM,
+			USB_CDC_SUBCLASS_MDLM, USB_CDC_PROTO_NONE),
+	.driver_info = (unsigned long) &bogus_mdlm_info,
+},
 	{ },		// END
 };
 MODULE_DEVICE_TABLE(usb, products);
Signature · 1 line
1.7.5.4
maintainer
#1 lore raw

From: Scott Talbert <[email protected]>
Date: Sun, 19 Feb 2012 20:35:29 -0500 (EST)

Quoted 5 lines

The Logitech Harmony 900 remote control appears to use the pseudo-MDLM driver, rather than the standard one. This patch simply moves the device so that it gets picked up by the correct driver.

You're not moving anything, you're adding the ID to not one but two different drivers.

That doesn't make any sense to me, so either this patch is completely wrong or you need to rewrite your commit message to explain things better and more accurately.

#2 lore raw
Quoted 7 lines · David Miller

From: Scott Talbert <[email protected]>
Date: Sun, 19 Feb 2012 20:35:29 -0500 (EST)

Quoted 4 lines

The Logitech Harmony 900 remote control appears to use the pseudo-MDLM driver, rather than the standard one. This patch simply moves the device so that it gets picked up by the correct driver.

Quoted 8 lines
Quoted 1 line

You're not moving anything, you're adding the ID to not one but two different drivers.

That doesn't make any sense to me, so either this patch is completely wrong or you need to rewrite your commit message to explain things better and more accurately.

Sorry, to clarify...in the current baseline, the Harmony 900 gets picked up by the cdc_ether driver by this generic line in cdc_ether.c:

USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_MDLM,
USB_CDC_PROTO_NONE),
.driver_info = (unsigned long)&wwan_info,

The intent of my patch is to blacklist the Harmony 900 from cdc_ether and whitelist it in zaurus.

Scott

maintainer
#3 lore raw

From: Scott Talbert <[email protected]>
Date: Mon, 20 Feb 2012 19:50:57 -0500 (EST)

Quoted 21 lines · David Miller
Quoted 8 lines

From: Scott Talbert <[email protected]>
Date: Sun, 19 Feb 2012 20:35:29 -0500 (EST)

Quoted 4 lines

The Logitech Harmony 900 remote control appears to use the pseudo-MDLM driver, rather than the standard one. This patch simply moves the device so that it gets picked up by the correct driver.

Quoted 8 lines
Quoted 1 line

You're not moving anything, you're adding the ID to not one but two different drivers.

That doesn't make any sense to me, so either this patch is completely wrong or you need to rewrite your commit message to explain things better and more accurately.

Sorry, to clarify...in the current baseline, the Harmony 900 gets picked up by the cdc_ether driver by this generic line in cdc_ether.c:

Quoted 6 lines

USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_MDLM,
USB_CDC_PROTO_NONE),
.driver_info = (unsigned long)&wwan_info,

The intent of my patch is to blacklist the Harmony 900 from cdc_ether and whitelist it in zaurus.

Please freshly repost your patch with an updated commit message.