NetBSD Problem Report #58250

From www@netbsd.org  Sun May 12 10:28:54 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 8D5721A9249
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 May 2024 10:28:54 +0000 (UTC)
Message-Id: <20240512102853.33E4F1A924A@mollari.NetBSD.org>
Date: Sun, 12 May 2024 10:28:53 +0000 (UTC)
From: RVP@SDF.ORG
Reply-To: RVP@SDF.ORG
To: gnats-bugs@NetBSD.org
Subject: Add TP-Link UE300 USB LAN adapter
X-Send-Pr-Version: www-1.0

>Number:         58250
>Category:       kern
>Synopsis:       Add TP-Link UE300 USB LAN adapter
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          pending-pullups
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun May 12 10:30:00 +0000 2024
>Closed-Date:    
>Last-Modified:  Sun Oct 13 15:30:04 +0000 2024
>Originator:     RVP
>Release:        NetBSD-10.99.10/amd64
>Organization:
>Environment:
NetBSD-10.99.10/amd64
>Description:
Add USB ID for TP-Link UE300 USB Lan adapter. Without this, the generic
cdce(4) driver attaches--which is _very_ flaky.

The description is from the Linux USB ID Repository:

http://www.linux-usb.org/usb-ids.html
>How-To-Repeat:
Attach a TP-Link UE300 device. Watch cdce(4) struggle with it.
>Fix:
diff -urN a/src/sys/dev/usb/if_ure.c b/src/sys/dev/usb/if_ure.c
--- a/src/sys/dev/usb/if_ure.c	2023-10-09 11:28:05.000000000 +0000
+++ b/src/sys/dev/usb/if_ure.c	2024-05-09 09:18:36.269784151 +0000
@@ -72,7 +72,8 @@

 static const struct usb_devno ure_devs[] = {
 	{ USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8152 },
-	{ USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8153 }
+	{ USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8153 },
+	{ USB_VENDOR_TPLINK,  USB_PRODUCT_TPLINK_UE300 }
 };

 #define URE_BUFSZ	(16 * 1024)
diff -urN a/src/sys/dev/usb/usbdevs b/src/sys/dev/usb/usbdevs
--- a/src/sys/dev/usb/usbdevs	2024-04-17 05:31:04.595580948 +0000
+++ b/src/sys/dev/usb/usbdevs	2024-05-09 09:15:54.572775627 +0000
@@ -3467,6 +3467,7 @@
 product	TPLINK T4UV2		0x010d  Archer T4U ver 2
 product	TPLINK T4UHV2		0x010e  Archer T4UH ver 2
 product	TPLINK T2UNANO		0x011e  Archer T2U Nano
+product	TPLINK UE300		0x0601  UE300 10/100/1000 LAN

 /* Trek Technology products */
 product TREK THUMBDRIVE		0x1111	ThumbDrive

>Release-Note:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58250 CVS commit: src/sys/dev/usb
Date: Sun, 12 May 2024 13:17:56 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Sun May 12 17:17:56 UTC 2024

 Modified Files:
 	src/sys/dev/usb: if_ure.c usbdevs

 Log Message:
 PR/58250: RVP: Add TP-Link UE300 USB LAN adapter


 To generate a diff of this commit:
 cvs rdiff -u -r1.59 -r1.60 src/sys/dev/usb/if_ure.c
 cvs rdiff -u -r1.815 -r1.816 src/sys/dev/usb/usbdevs

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Tue, 23 Jul 2024 21:10:53 +0000
State-Changed-Why:
Probably needs pullup-10, if not pullup-9?


State-Changed-From-To: needs-pullups->pending-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Sun, 13 Oct 2024 02:15:45 +0000
State-Changed-Why:
pullup-10 #967 https://releng.netbsd.org/cgi-bin/req-10.cgi?show=967
no pullup-9 unless someone with hardware is willing to test


From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58250 CVS commit: [netbsd-10] src/sys/dev/usb
Date: Sun, 13 Oct 2024 15:25:38 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Oct 13 15:25:38 UTC 2024

 Modified Files:
 	src/sys/dev/usb [netbsd-10]: usbdevs

 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #967):

 	sys/dev/usb/usbdevs: revision 1.816
 	sys/dev/usb/if_ure.c: revision 1.60

 PR/58250: RVP: Add TP-Link UE300 USB LAN adapter


 To generate a diff of this commit:
 cvs rdiff -u -r1.806.4.4 -r1.806.4.5 src/sys/dev/usb/usbdevs

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/58250 CVS commit: [netbsd-10] src/sys/dev/usb
Date: Sun, 13 Oct 2024 15:27:01 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Oct 13 15:27:01 UTC 2024

 Modified Files:
 	src/sys/dev/usb [netbsd-10]: if_ure.c

 Log Message:
 Pull up following revision(s) (requested by riastradh in ticket #967):

 	sys/dev/usb/usbdevs: revision 1.816
 	sys/dev/usb/if_ure.c: revision 1.60

 PR/58250: RVP: Add TP-Link UE300 USB LAN adapter


 To generate a diff of this commit:
 cvs rdiff -u -r1.58.4.1 -r1.58.4.2 src/sys/dev/usb/if_ure.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.