Skip to content

Commit

Permalink
r8152: Add MAC passthrough support for Lenovo Travel Hub
Browse files Browse the repository at this point in the history
The Lenovo USB-C Travel Hub supports MAC passthrough.

Signed-off-by: André Apitzsch <git@apitzsch.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
André Apitzsch authored and David S. Miller committed Sep 3, 2022
1 parent 5854a09 commit e26c258
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/usb/r8152.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ enum rtl8152_flags {
RX_EPROTO,
};

#define DEVICE_ID_LENOVO_USB_C_TRAVEL_HUB 0x721e
#define DEVICE_ID_THINKPAD_ONELINK_PLUS_DOCK 0x3054
#define DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2 0x3082
#define DEVICE_ID_THINKPAD_USB_C_DONGLE 0x720c
Expand Down Expand Up @@ -9586,6 +9587,7 @@ static bool rtl8152_supports_lenovo_macpassthru(struct usb_device *udev)

if (vendor_id == VENDOR_ID_LENOVO) {
switch (product_id) {
case DEVICE_ID_LENOVO_USB_C_TRAVEL_HUB:
case DEVICE_ID_THINKPAD_ONELINK_PLUS_DOCK:
case DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2:
case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2:
Expand Down

0 comments on commit e26c258

Please sign in to comment.