* [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet
@ 2017-10-23 10:10 ` Ran Wang
0 siblings, 0 replies; 6+ messages in thread
From: Ran Wang @ 2017-10-23 10:10 UTC (permalink / raw)
To: Oliver Neukum
Cc: David S . Miller, hayeswang, linux-usb, netdev, linux-kernel, Ran Wang
This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network
Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with
driver drivers/net/usb/r8152.c
Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
---
drivers/net/usb/cdc_ether.c | 8 ++++++++
drivers/net/usb/r8152.c | 2 ++
2 files changed, 10 insertions(+)
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 52ea80bcd639..5529bd136624 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -561,6 +561,7 @@ static const struct driver_info wwan_info = {
#define HP_VENDOR_ID 0x03f0
#define MICROSOFT_VENDOR_ID 0x045e
#define UBLOX_VENDOR_ID 0x1546
+#define TPLINK_VENDOR_ID 0x2357
static const struct usb_device_id products[] = {
/* BLACKLIST !!
@@ -813,6 +814,13 @@ static const struct usb_device_id products[] = {
.driver_info = 0,
},
+ /* TP-LINK UE300 USB 3.0 Ethernet Adapters (based on Realtek RTL8153) */
+{
+ USB_DEVICE_AND_INTERFACE_INFO(TPLINK_VENDOR_ID, 0x0601, USB_CLASS_COMM,
+ USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
+ .driver_info = 0,
+},
+
/* WHITELIST!!!
*
* CDC Ether uses two interfaces, not necessarily consecutive.
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index 941ece08ba78..d51d9abf7986 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -615,6 +615,7 @@ enum rtl8152_flags {
#define VENDOR_ID_LENOVO 0x17ef
#define VENDOR_ID_LINKSYS 0x13b1
#define VENDOR_ID_NVIDIA 0x0955
+#define VENDOR_ID_TPLINK 0x2357
#define MCU_TYPE_PLA 0x0100
#define MCU_TYPE_USB 0x0000
@@ -5319,6 +5320,7 @@ static const struct usb_device_id rtl8152_table[] = {
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7214)},
{REALTEK_USB_DEVICE(VENDOR_ID_LINKSYS, 0x0041)},
{REALTEK_USB_DEVICE(VENDOR_ID_NVIDIA, 0x09ff)},
+ {REALTEK_USB_DEVICE(VENDOR_ID_TPLINK, 0x0601)},
{}
};
--
2.14.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet
@ 2017-10-23 10:10 ` Ran Wang
0 siblings, 0 replies; 6+ messages in thread
From: Ran Wang @ 2017-10-23 10:10 UTC (permalink / raw)
To: Oliver Neukum
Cc: David S . Miller, hayeswang, linux-usb-u79uwXL29TY76Z2rM5mHXA,
netdev-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Ran Wang
This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network
Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with
driver drivers/net/usb/r8152.c
Signed-off-by: Ran Wang <ran.wang_1-3arQi8VN3Tc@public.gmane.org>
---
drivers/net/usb/cdc_ether.c | 8 ++++++++
drivers/net/usb/r8152.c | 2 ++
2 files changed, 10 insertions(+)
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 52ea80bcd639..5529bd136624 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -561,6 +561,7 @@ static const struct driver_info wwan_info = {
#define HP_VENDOR_ID 0x03f0
#define MICROSOFT_VENDOR_ID 0x045e
#define UBLOX_VENDOR_ID 0x1546
+#define TPLINK_VENDOR_ID 0x2357
static const struct usb_device_id products[] = {
/* BLACKLIST !!
@@ -813,6 +814,13 @@ static const struct usb_device_id products[] = {
.driver_info = 0,
},
+ /* TP-LINK UE300 USB 3.0 Ethernet Adapters (based on Realtek RTL8153) */
+{
+ USB_DEVICE_AND_INTERFACE_INFO(TPLINK_VENDOR_ID, 0x0601, USB_CLASS_COMM,
+ USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
+ .driver_info = 0,
+},
+
/* WHITELIST!!!
*
* CDC Ether uses two interfaces, not necessarily consecutive.
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index 941ece08ba78..d51d9abf7986 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -615,6 +615,7 @@ enum rtl8152_flags {
#define VENDOR_ID_LENOVO 0x17ef
#define VENDOR_ID_LINKSYS 0x13b1
#define VENDOR_ID_NVIDIA 0x0955
+#define VENDOR_ID_TPLINK 0x2357
#define MCU_TYPE_PLA 0x0100
#define MCU_TYPE_USB 0x0000
@@ -5319,6 +5320,7 @@ static const struct usb_device_id rtl8152_table[] = {
{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO, 0x7214)},
{REALTEK_USB_DEVICE(VENDOR_ID_LINKSYS, 0x0041)},
{REALTEK_USB_DEVICE(VENDOR_ID_NVIDIA, 0x09ff)},
+ {REALTEK_USB_DEVICE(VENDOR_ID_TPLINK, 0x0601)},
{}
};
--
2.14.1
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet
2017-10-23 10:10 ` Ran Wang
(?)
@ 2017-10-23 10:56 ` Oliver Neukum
2017-10-24 0:54 ` Ran Wang
-1 siblings, 1 reply; 6+ messages in thread
From: Oliver Neukum @ 2017-10-23 10:56 UTC (permalink / raw)
To: Ran Wang; +Cc: David S . Miller, hayeswang, linux-kernel, linux-usb, netdev
Am Montag, den 23.10.2017, 18:10 +0800 schrieb Ran Wang:
> This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network
> Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with
> driver drivers/net/usb/r8152.c
>
Hi,
just for the record, have you confirm that it fails with cdc-ether?
Regards
Oliver
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet
2017-10-23 10:56 ` Oliver Neukum
@ 2017-10-24 0:54 ` Ran Wang
0 siblings, 0 replies; 6+ messages in thread
From: Ran Wang @ 2017-10-24 0:54 UTC (permalink / raw)
To: Oliver Neukum
Cc: David S . Miller, hayeswang, linux-kernel, linux-usb, netdev
Hi Oliver
> -----Original Message-----
> From: Oliver Neukum [mailto:oneukum@suse.com]
> Sent: Monday, October 23, 2017 6:56 PM
> To: Ran Wang <ran.wang_1@nxp.com>
> Cc: David S . Miller <davem@davemloft.net>; hayeswang
> <hayeswang@realtek.com>; linux-kernel@vger.kernel.org; linux-
> usb@vger.kernel.org; netdev@vger.kernel.org
> Subject: Re: [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB
> 3.0 Ethernet
>
> Am Montag, den 23.10.2017, 18:10 +0800 schrieb Ran Wang:
> > This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network
> > Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with
> > driver drivers/net/usb/r8152.c
> >
>
> Hi,
>
> just for the record, have you confirm that it fails with cdc-ether?
>
Yes, when I use default cdc-ether and do data transfer test, I see system flooding message
'[ 1076.627366] cdc_ether 4-1:2.0 eth8: kevent 11 may have been dropped' and related eth#
Shows most packets received has been dropped. After load r8152.c, everything work fine.
BR
Ran
> Regards
> Oliver
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet
@ 2017-10-24 9:31 ` David Miller
0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2017-10-24 9:31 UTC (permalink / raw)
To: ran.wang_1; +Cc: oliver, hayeswang, linux-usb, netdev, linux-kernel
From: Ran Wang <ran.wang_1@nxp.com>
Date: Mon, 23 Oct 2017 18:10:23 +0800
> This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network
> Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with
> driver drivers/net/usb/r8152.c
>
> Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
Applied.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet
@ 2017-10-24 9:31 ` David Miller
0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2017-10-24 9:31 UTC (permalink / raw)
To: ran.wang_1-3arQi8VN3Tc
Cc: oliver-GvhC2dPhHPQdnm+yROfE0A, hayeswang-Rasf1IRRPZFBDgjK7y7TUQ,
linux-usb-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
From: Ran Wang <ran.wang_1-3arQi8VN3Tc@public.gmane.org>
Date: Mon, 23 Oct 2017 18:10:23 +0800
> This product is named 'TP-LINK USB 3.0 Gigabit Ethernet Network
> Adapter (Model No.is UE300)'. It uses chip RTL8153 and works with
> driver drivers/net/usb/r8152.c
>
> Signed-off-by: Ran Wang <ran.wang_1-3arQi8VN3Tc@public.gmane.org>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-10-24 9:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-23 10:10 [PATCH] drivers/net/usb: add device id for TP-LINK UE300 USB 3.0 Ethernet Ran Wang
2017-10-23 10:10 ` Ran Wang
2017-10-23 10:56 ` Oliver Neukum
2017-10-24 0:54 ` Ran Wang
2017-10-24 9:31 ` David Miller
2017-10-24 9:31 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.