git: a1bb5bdb0ab6 - main - ure(4): Add ID for LAN port in Thinkpad OneLink+ dock

From: Alexander Motin <mav_at_FreeBSD.org>
Date: Thu, 19 Sep 2024 01:59:36 UTC
The branch main has been updated by mav:

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

commit a1bb5bdb0ab69bc3ce1f6051b6abc0cbaab83faa
Author:     Alexander Motin <mav@FreeBSD.org>
AuthorDate: 2024-09-19 01:55:24 +0000
Commit:     Alexander Motin <mav@FreeBSD.org>
CommitDate: 2024-09-19 01:55:24 +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
---
 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 3f72adb21aea..8e307daccfad 100644
--- a/sys/dev/usb/net/if_ure.c
+++ b/sys/dev/usb/net/if_ure.c
@@ -100,6 +100,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 27126b52e243..861e5ad73a2e 100644
--- a/sys/dev/usb/usbdevs
+++ b/sys/dev/usb/usbdevs
@@ -2828,6 +2828,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