Skip to content

Commit 00fcf8c

Browse files
pyma1kuba-moo
authored andcommitted
Revert "net: usb: r8152: Add MAC passthrough support for more Lenovo Docks"
This reverts commit f77b83b. This change breaks multiple usb to ethernet dongles attached on Lenovo USB hub. Fixes: f77b83b ("net: usb: r8152: Add MAC passthrough support for more Lenovo Docks") Signed-off-by: Aaron Ma <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent af872b6 commit 00fcf8c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

drivers/net/usb/r8152.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9638,9 +9638,12 @@ static int rtl8152_probe(struct usb_interface *intf,
96389638
netdev->hw_features &= ~NETIF_F_RXCSUM;
96399639
}
96409640

9641-
if (udev->parent &&
9642-
le16_to_cpu(udev->parent->descriptor.idVendor) == VENDOR_ID_LENOVO) {
9643-
tp->lenovo_macpassthru = 1;
9641+
if (le16_to_cpu(udev->descriptor.idVendor) == VENDOR_ID_LENOVO) {
9642+
switch (le16_to_cpu(udev->descriptor.idProduct)) {
9643+
case DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2:
9644+
case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2:
9645+
tp->lenovo_macpassthru = 1;
9646+
}
96449647
}
96459648

96469649
if (le16_to_cpu(udev->descriptor.bcdDevice) == 0x3011 && udev->serial &&

0 commit comments

Comments
 (0)