From ec74d5f1329bd243eda01dd0ac708266d844d989 Mon Sep 17 00:00:00 2001 From: Shibby Date: Tue, 28 Jul 2015 11:40:28 +0200 Subject: [PATCH] rewised huawei_ether module --- release/src-rt-6.x.4708/linux/linux-2.6.36/config_base | 4 ++-- release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Kconfig | 2 +- .../src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Makefile | 2 +- .../drivers/net/usb/{hw_cdc_driver.c => huawei_ether.c} | 7 +++++++ 4 files changed, 11 insertions(+), 4 deletions(-) rename release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/{hw_cdc_driver.c => huawei_ether.c} (99%) diff --git a/release/src-rt-6.x.4708/linux/linux-2.6.36/config_base b/release/src-rt-6.x.4708/linux/linux-2.6.36/config_base index 59cff24b64..c03017fa9a 100644 --- a/release/src-rt-6.x.4708/linux/linux-2.6.36/config_base +++ b/release/src-rt-6.x.4708/linux/linux-2.6.36/config_base @@ -1149,7 +1149,7 @@ CONFIG_MII=m CONFIG_USB_USBNET=m CONFIG_USB_NET_AX8817X=m CONFIG_USB_NET_CDCETHER=m -CONFIG_USB_NET_HW_CDCDRIVER=m +CONFIG_USB_NET_HUAWEIETHER=m # CONFIG_USB_NET_CDC_EEM is not set CONFIG_USB_NET_CDC_NCM=m CONFIG_USB_NET_QMI_WWAN=m @@ -1627,7 +1627,7 @@ CONFIG_USB_SERIAL_GENERIC=y # CONFIG_USB_SERIAL_CH341 is not set # CONFIG_USB_SERIAL_WHITEHEAT is not set # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set -# CONFIG_USB_SERIAL_CP210X is not set +CONFIG_USB_SERIAL_CP210X=m # CONFIG_USB_SERIAL_CYPRESS_M8 is not set # CONFIG_USB_SERIAL_EMPEG is not set CONFIG_USB_SERIAL_FTDI_SIO=m diff --git a/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Kconfig b/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Kconfig index fe6382c9e2..30c79740f2 100644 --- a/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Kconfig +++ b/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Kconfig @@ -182,7 +182,7 @@ config USB_NET_CDCETHER IEEE 802 "local assignment" bit is set in the address, a "usbX" name is used instead. -config USB_NET_HW_CDCDRIVER +config USB_NET_HUAWEIETHER tristate "HW CDC Driver (Huawei driver for E3372 non-Hilink)" depends on USB_USBNET default y diff --git a/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Makefile b/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Makefile index d7630a565a..6ae36310c2 100755 --- a/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Makefile +++ b/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/Makefile @@ -9,7 +9,7 @@ obj-$(CONFIG_USB_RTL8150) += rtl8150.o obj-$(CONFIG_USB_HSO) += hso.o obj-$(CONFIG_USB_NET_AX8817X) += asix.o obj-$(CONFIG_USB_NET_CDCETHER) += cdc_ether.o -obj-$(CONFIG_USB_NET_HW_CDCDRIVER) += hw_cdc_driver.o +obj-$(CONFIG_USB_NET_HUAWEIETHER) += huawei_ether.o obj-$(CONFIG_USB_NET_CDC_EEM) += cdc_eem.o obj-$(CONFIG_USB_NET_DM9601) += dm9601.o obj-$(CONFIG_USB_NET_SMSC75XX) += smsc75xx.o diff --git a/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/hw_cdc_driver.c b/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/huawei_ether.c similarity index 99% rename from release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/hw_cdc_driver.c rename to release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/huawei_ether.c index 4ab43d7b42..4cc3449321 100644 --- a/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/hw_cdc_driver.c +++ b/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/usb/huawei_ether.c @@ -2804,6 +2804,13 @@ hw_cdc_probe (struct usb_interface *udev, const struct usb_device_id *prod) if (status){ goto out3; } + + if (netif_msg_probe (dev)){ + devinfo (dev, "register '%s', %s", + dev->driver_name, + dev->driver_desc); + } + // ok, it's ready to go. usb_set_intfdata (udev, dev); -- 2.11.4.GIT