[<prev] [next>] [day] [month] [year] [list]
Message-ID: <46098CE4.5060907@gmx.de>
Date: Tue, 27 Mar 2007 23:30:12 +0200
From: Ingo van Lil <inguin@....de>
To: linux-kernel@...r.kernel.org
Subject: [PATCH] USB config selection for RNDIS devices
Hi there,
the USB configuration selection code in drivers/usb/core/generic.c will
refuse to use an RNDIS-only device if the RNDIS driver is compiled as a
module. The straightforward solution would be to change the #ifndef test
to include CONFIG_USB_NET_RNDIS_HOST_MODULE as well, but I'd rather
suggest to drop the entire check instead. That way the RNDIS-case will
be treated just like a vendor-specific configuration: It will be chosen
only if no better choice (e.g. CDC) can be found.
Cheers,
Ingo
Signed-off-by: Ingo van Lil <inguin@....de>
---
--- drivers/usb/core/generic.c.orig 2007-03-27 23:03:17.000000000 +0200
+++ drivers/usb/core/generic.c 2007-03-27 23:06:18.000000000 +0200
@@ -88,17 +88,13 @@
}
/* If the first config's first interface is COMM/2/0xff
- * (MSFT RNDIS), rule it out unless Linux has host-side
- * RNDIS support. */
+ * (MSFT RNDIS), select it but keep scanning something
+ * better (ideally a CDC ethernet interface). */
if (i == 0 && desc
&& desc->bInterfaceClass == USB_CLASS_COMM
&& desc->bInterfaceSubClass == 2
&& desc->bInterfaceProtocol == 0xff) {
-#ifndef CONFIG_USB_NET_RNDIS_HOST
- continue;
-#else
best = c;
-#endif
}
/* From the remaining configs, choose the first one whose
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists