]> git.itanic.dy.fi Git - linux-stable/commit
r8152: add PID for the Lenovo OneLink+ Dock
authorJean-Francois Le Fillatre <jflf_kernel@gmx.com>
Wed, 24 Aug 2022 19:14:36 +0000 (21:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Aug 2022 15:35:41 +0000 (16:35 +0100)
commit1bd3a383075c64d638e65d263c9267b08ee7733c
tree2a722a011aa875673b04ff0cf683a82ef6be03ca
parentebe5555c2f34505cdb1ae5c3de8b24e33740b3e0
r8152: add PID for the Lenovo OneLink+ Dock

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.

Also, systems compatible with this dock provide a BIOS option to enable
MAC address passthrough (as per Lenovo document "ThinkPad Docking
Solutions 2017"). Add the custom PID to the MAC passthrough list too.

Tested on a ThinkPad 13 1st gen with the expected results:

passthrough disabled: Invalid header when reading pass-thru MAC addr
passthrough enabled:  Using pass-thru MAC addr XX:XX:XX:XX:XX:XX

Signed-off-by: Jean-Francois Le Fillatre <jflf_kernel@gmx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ether.c
drivers/net/usb/r8152.c