Skip to contentSkip to conversation

backport: r8152: PID for the Lenovo OneLink+ Dock

PATCH In review Jean-Francois Le Fillatre 2 participants 3 messages Oct 24, 2022 – Oct 26, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 backport: r8152: PID for the Lenovo OneLink+ Dock

[ Upstream commit 1bd3a383075c64d638e65d263c9267b08ee7733c ]

The Lenovo OneLink+ Dock contains an RTL8153 controller that behaves as a broken CDC device by default. Add the custom Lenovo PID to the r8152 driver to support it properly.

This backport removes the PID declaration for MAC address passthrough, for kernels that don't support the feature.

Applies to v4.14, v4.19, v5.4, v5.10

---
 drivers/net/usb/cdc_ether.c | 7 +++++++
 drivers/net/usb/r8152.c     | 1 +
 2 files changed, 8 insertions(+)
drivers/net/usb/cdc_ether.c +7 -0
index 778bd9aaba9f..17b932505be0 100644
@@ -777,6 +777,13 @@ static const struct usb_device_id	products[] = {
 },
 #endif
 
+/* Lenovo ThinkPad OneLink+ Dock (based on Realtek RTL8153) */
+{
+	USB_DEVICE_AND_INTERFACE_INFO(LENOVO_VENDOR_ID, 0x3054, USB_CLASS_COMM,
+			USB_CDC_SUBCLASS_ETHERNET, USB_CDC_PROTO_NONE),
+	.driver_info = 0,
+},
+
 /* ThinkPad USB-C Dock (based on Realtek RTL8153) */
 {
 	USB_DEVICE_AND_INTERFACE_INFO(LENOVO_VENDOR_ID, 0x3062, USB_CLASS_COMM,
drivers/net/usb/r8152.c +1 -0
index 4764e4f54cef..df12af5b87df 100644
@@ -5325,6 +5325,7 @@ static const struct usb_device_id rtl8152_table[] = {
 	{REALTEK_USB_DEVICE(VENDOR_ID_MICROSOFT, 0x0927)},
 	{REALTEK_USB_DEVICE(VENDOR_ID_SAMSUNG, 0xa101)},
 	{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO,  0x304f)},
+	{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO,  0x3054)},
 	{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO,  0x3062)},
 	{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO,  0x3069)},
 	{REALTEK_USB_DEVICE(VENDOR_ID_LENOVO,  0x7205)},

--
2.34.1

maintainer
#1 lore raw
Quoted 6 lines · Jean-Francois Le Fillatre

[ Upstream commit 1bd3a383075c64d638e65d263c9267b08ee7733c ]

The Lenovo OneLink+ Dock contains an RTL8153 controller that behaves as a broken CDC device by default. Add the custom Lenovo PID to the r8152 driver to support it properly.

Quoted 6 lines

This backport removes the PID declaration for MAC address passthrough, for kernels that don't support the feature.

Applies to v4.14, v4.19, v5.4, v5.10

All now queued up, thanks.

greg k-h

#2 lore raw
Quoted 10 lines · Greg KH
Quoted 9 lines · Jean-Francois Le Fillatre

[ Upstream commit 1bd3a383075c64d638e65d263c9267b08ee7733c ]

The Lenovo OneLink+ Dock contains an RTL8153 controller that behaves as a broken CDC device by default. Add the custom Lenovo PID to the r8152 driver to support it properly.

This backport removes the PID declaration for MAC address passthrough, for kernels that don't support the feature.

Quoted 7 lines
Quoted 3 lines

Applies to v4.14, v4.19, v5.4, v5.10

All now queued up, thanks.

greg k-h

Thank you very much, much appreciated. It's been a learning curve.

JF