Skip to content

Commit 4a476bd

Browse files
mjg59davem330
authored andcommitted
usbnet: New driver for QinHeng CH9200 devices
There's a bunch of cheap USB 10/100 devices based on QinHeng chipsets. The vendor driver supports the CH9100 and CH9200 devices, but the majority of the code is of the if (ch9100) {} else {} form, with the most significant difference being that CH9200 provides a real MII interface but CH9100 fakes one with a bunch of global variables and magic commands. I don't have a CH9100, so it's probably better if someone who does provides an independent driver for it. In any case, this is a lightly cleaned up version of the vendor driver with all the CH9100 code dropped. Signed-off-by: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4f8d0bb commit 4a476bd

File tree

3 files changed

+455
-1
lines changed

3 files changed

+455
-1
lines changed

drivers/net/usb/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,4 +583,15 @@ config USB_VL600
583583

584584
http://ubuntuforums.org/showpost.php?p=10589647&postcount=17
585585

586+
config USB_NET_CH9200
587+
tristate "QingHeng CH9200 USB ethernet support"
588+
depends on USB_USBNET
589+
select MII
590+
help
591+
Choose this option if you have a USB ethernet adapter with a QinHeng
592+
CH9200 chipset.
593+
594+
To compile this driver as a module, choose M here: the
595+
module will be called ch9200.
596+
586597
endif # USB_NET_DRIVERS

drivers/net/usb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ obj-$(CONFIG_USB_NET_HUAWEI_CDC_NCM) += huawei_cdc_ncm.o
3838
obj-$(CONFIG_USB_VL600) += lg-vl600.o
3939
obj-$(CONFIG_USB_NET_QMI_WWAN) += qmi_wwan.o
4040
obj-$(CONFIG_USB_NET_CDC_MBIM) += cdc_mbim.o
41-
41+
obj-$(CONFIG_USB_NET_CH9200) += ch9200.o

0 commit comments

Comments
 (0)