git: 8748daf670ee - stable/14 - ure(4): Add ID for LAN port in Thinkpad OneLink+ dock

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Thu, 26 Sep 2024 00:49:38 UTC
The branch stable/14 has been updated by mav:

URL: https://cgit.FreeBSD.org/src/commit/?id=8748daf670eec754b5e926d107ca1f347cca6948

commit 8748daf670eec754b5e926d107ca1f347cca6948
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2024-09-19 01:55:24 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2024-09-26 00:49:31 +0000

    ure(4): Add ID for LAN port in Thinkpad OneLink+ dock
    
    That's a pretty old dock for Thinkpad X1 Carbon Gen4 and few others.
    
    MFC after:      1 week
    
    (cherry picked from commit a1bb5bdb0ab69bc3ce1f6051b6abc0cbaab83faa)
---
 sys/dev/usb/net/if_ure.c | 1 +
 sys/dev/usb/usbdevs      | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys/dev/usb/net/if_ure.c b/sys/dev/usb/net/if_ure.c
index 26fe17bb072e..55444030869c 100644
--- a/sys/dev/usb/net/if_ure.c
+++ b/sys/dev/usb/net/if_ure.c
@@ -102,6 +102,7 @@ static const STRUCT_USB_HOST_ID ure_devs[] = {
 	URE_DEV(LENOVO, TBT3LANGEN2, 0),
 	URE_DEV(LENOVO, ONELINK, 0),
 	URE_DEV(LENOVO, RTL8153_04, URE_FLAG_8153),
+	URE_DEV(LENOVO, ONELINKPLUS, URE_FLAG_8153),
 	URE_DEV(LENOVO, USBCLAN, 0),
 	URE_DEV(LENOVO, USBCLANGEN2, 0),
 	URE_DEV(LENOVO, USBCLANHYBRID, 0),
diff --git a/sys/dev/usb/usbdevs b/sys/dev/usb/usbdevs
index 39bfd258502b..66695c195492 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -2831,6 +2831,7 @@ product LENOVO ETHERNET		0x7203	USB 2.0 Ethernet
 product LENOVO RTL8153		0x7205	USB 3.0 Ethernet
 product LENOVO ONELINK		0x720a	USB 3.0 Ethernet
 product LENOVO RTL8153_04	0x720c	USB 3.0 Ethernet
+product LENOVO ONELINKPLUS	0x3054	LAN port in Thinkpad OneLink+ dock
 product LENOVO TBT3LAN		0x3069	LAN port in Thinkpad TB3 dock
 product LENOVO USBCLAN		0x3062	LAN port in Thinkpad USB-C dock
 product LENOVO TBT3LANGEN2	0x3082  LAN port in Thinkpad TB3 dock gen2