]> git.baikalelectronics.ru Git - kernel.git/commit
net: usb: r8152: Add in new Devices that are supported for Mac-Passthru
authorDavid Ober <dober6023@gmail.com>
Tue, 17 May 2022 18:05:39 +0000 (14:05 -0400)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 May 2022 00:21:24 +0000 (17:21 -0700)
commit7afbc84463b6cae98201b2981e1886e1c77c5b9e
tree4ff91cb3b79bd7a7ee77baf2dd8ce567cdacc69f
parentbb78c5154749a7cec1edab7e1177d716e65da265
net: usb: r8152: Add in new Devices that are supported for Mac-Passthru

Lenovo Thunderbolt 4 Dock, and other Lenovo USB Docks are using the
original Realtek USB ethernet Vendor and Product IDs
If the Network device is Realtek verify that it is on a Lenovo USB hub
before enabling the passthru feature

This also adds in the device IDs for the Lenovo USB Dongle and one other
USB-C dock

V2 fix formating of code
V3 remove Generic define for Device ID 0x8153 and change it to use value
V4 rearrange defines and case statement to put them in better order
v5 create helper function to do the testing work as suggested

Signed-off-by: David Ober <dober6023@gmail.com>
Link: https://lore.kernel.org/r/20220517180539.25839-1-dober6023@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/r8152.c