Commit 465d29f1 authored by Jonathan McDowell's avatar Jonathan McDowell Committed by Greg Kroah-Hartman

[PATCH] USB: add KC2190 support for usbnet.

The patch below adds support for the KC2190 usb-to-usb networking
device; the version I have reports itself as:

Bus 001 Device 003: ID 050f:0190 KC Technology, Inc.

I was under the impression that support for this had been added a long
time ago, but searching through old kernel versions all I could find was
a comment about the chip, with no support. Patch is against 2.6.9 but is
pretty minimal.

I don't have a Windows box around to test interoperability with that
driver, but the patch appears to make it work perfectly between 2 Linux
boxes.
Signed-off-by: default avatarJonathan McDowell <noodles@earth.li>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent c6943dc2
...@@ -185,6 +185,14 @@ config USB_PL2301 ...@@ -185,6 +185,14 @@ config USB_PL2301
Choose this option if you're using a host-to-host cable Choose this option if you're using a host-to-host cable
with one of these chips. with one of these chips.
config USB_KC2190
boolean "KT Technology KC2190 based cables (InstaNet)"
default y
depends on USB_USBNET && EXPERIMENTAL
help
Choose this option if you're using a host-to-host cable
with one of these chips.
comment "Intelligent USB Devices/Gadgets" comment "Intelligent USB Devices/Gadgets"
depends on USB_USBNET depends on USB_USBNET
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
* - GeneSys GL620USB-A * - GeneSys GL620USB-A
* - NetChip 1080 (interoperates with NetChip Win32 drivers) * - NetChip 1080 (interoperates with NetChip Win32 drivers)
* - Prolific PL-2301/2302 (replaces "plusb" driver) * - Prolific PL-2301/2302 (replaces "plusb" driver)
* - KC Technology KC2190
* *
* + Smart USB devices can support such links directly, using Internet * + Smart USB devices can support such links directly, using Internet
* standard protocols instead of proprietary host-to-device links. * standard protocols instead of proprietary host-to-device links.
...@@ -106,6 +107,7 @@ ...@@ -106,6 +107,7 @@
* 22-aug-2003 AX8817X support (Dave Hollis). * 22-aug-2003 AX8817X support (Dave Hollis).
* 14-jun-2004 Trivial patch for AX8817X based Buffalo LUA-U2-KTX in Japan * 14-jun-2004 Trivial patch for AX8817X based Buffalo LUA-U2-KTX in Japan
* (Neil Bortnak) * (Neil Bortnak)
* 03-nov-2004 Trivial patch for KC2190 (KC-190) chip. (Jonathan McDowell)
* *
*-------------------------------------------------------------------------*/ *-------------------------------------------------------------------------*/
...@@ -134,7 +136,7 @@ ...@@ -134,7 +136,7 @@
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/dma-mapping.h> #include <linux/dma-mapping.h>
#define DRIVER_VERSION "25-Aug-2003" #define DRIVER_VERSION "03-Nov-2004"
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
...@@ -2159,6 +2161,13 @@ static const struct driver_info prolific_info = { ...@@ -2159,6 +2161,13 @@ static const struct driver_info prolific_info = {
#endif /* CONFIG_USB_PL2301 */ #endif /* CONFIG_USB_PL2301 */
#ifdef CONFIG_USB_KC2190
#define HAVE_HARDWARE
static const struct driver_info kc2190_info = {
.description = "KC Technology KC-190",
};
#endif /* CONFIG_USB_KC2190 */
#ifdef CONFIG_USB_ARMLINUX #ifdef CONFIG_USB_ARMLINUX
...@@ -3296,6 +3305,13 @@ static const struct usb_device_id products [] = { ...@@ -3296,6 +3305,13 @@ static const struct usb_device_id products [] = {
}, },
#endif #endif
#ifdef CONFIG_USB_KC2190
{
USB_DEVICE (0x050f, 0x0190), // KC-190
.driver_info = (unsigned long) &kc2190_info,
},
#endif
#ifdef CONFIG_USB_RNDIS #ifdef CONFIG_USB_RNDIS
{ {
/* RNDIS is MSFT's un-official variant of CDC ACM */ /* RNDIS is MSFT's un-official variant of CDC ACM */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment