* [PATCH] backport: r8152: PID for the Lenovo OneLink+ Dock
@ 2022-10-24 21:42 Jean-Francois Le Fillatre
2022-10-26 16:52 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Francois Le Fillatre @ 2022-10-24 21:42 UTC (permalink / raw)
To: stable; +Cc: 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.
Applies to v4.14, v4.19, v5.4, v5.10
Signed-off-by: Jean-Francois Le Fillatre <jflf_kernel@gmx.com>
---
drivers/net/usb/cdc_ether.c | 7 +++++++
drivers/net/usb/r8152.c | 1 +
2 files changed, 8 insertions(+)
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 778bd9aaba9f..17b932505be0 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -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,
diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c
index 4764e4f54cef..df12af5b87df 100644
--- a/drivers/net/usb/r8152.c
+++ b/drivers/net/usb/r8152.c
@@ -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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] backport: r8152: PID for the Lenovo OneLink+ Dock
2022-10-24 21:42 [PATCH] backport: r8152: PID for the Lenovo OneLink+ Dock Jean-Francois Le Fillatre
@ 2022-10-26 16:52 ` Greg KH
2022-10-26 18:32 ` jflf_kernel
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2022-10-26 16:52 UTC (permalink / raw)
To: Jean-Francois Le Fillatre; +Cc: stable
On Mon, Oct 24, 2022 at 11:42:07PM +0200, Jean-Francois Le Fillatre wrote:
> [ 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
>
> Signed-off-by: Jean-Francois Le Fillatre <jflf_kernel@gmx.com>
All now queued up, thanks.
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] backport: r8152: PID for the Lenovo OneLink+ Dock
2022-10-26 16:52 ` Greg KH
@ 2022-10-26 18:32 ` jflf_kernel
0 siblings, 0 replies; 3+ messages in thread
From: jflf_kernel @ 2022-10-26 18:32 UTC (permalink / raw)
To: Greg KH; +Cc: stable
On 26/10/2022 18.52, Greg KH wrote:
> On Mon, Oct 24, 2022 at 11:42:07PM +0200, Jean-Francois Le Fillatre wrote:
>> [ 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
>>
>> Signed-off-by: Jean-Francois Le Fillatre <jflf_kernel@gmx.com>
>
> All now queued up, thanks.
>
> greg k-h
Thank you very much, much appreciated. It's been a learning curve.
JF
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-26 18:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-24 21:42 [PATCH] backport: r8152: PID for the Lenovo OneLink+ Dock Jean-Francois Le Fillatre
2022-10-26 16:52 ` Greg KH
2022-10-26 18:32 ` jflf_kernel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).