net: usb: r8152: Add in new Devices that are supported for Mac-Passthru
Subsystems (4)
PATCH v3 1/1 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
--- drivers/net/usb/r8152.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/net/usb/r8152.c +10 -0
@@ -771,6 +771,8 @@ enum rtl8152_flags { };#define DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2 0x3082 +#define DEVICE_ID_THINKPAD_USB_C_DOCK_GEN3 0x3062 +#define DEVICE_ID_THINKPAD_USB_C_DONGLE 0x720c#define DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2 0xa387struct tally_counter {
@@ -9644,10 +9646,18 @@ static int rtl8152_probe(struct usb_interface *intf,if (le16_to_cpu (udev->descriptor.idVendor) ==VENDOR_ID_LENOVO ) {switch (le16_to_cpu (udev->descriptor.idProduct)) { +case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN3 : +case DEVICE_ID_THINKPAD_USB_C_DONGLE :case DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2 :case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2 : tp->lenovo_macpassthru =1 ; } + }else if ((le16_to_cpu (udev->descriptor.idVendor) ==VENDOR_ID_REALTEK ) && + (le16_to_cpu (udev->parent->descriptor.idVendor) ==VENDOR_ID_LENOVO )) { +switch (le16_to_cpu (udev->descriptor.idProduct)) { +case 0x8153 : + tp->lenovo_macpassthru =1 ; + } } if (le16_to_cpu(udev->descriptor.bcdDevice) == 0x3011 && udev->serial &&
Signature · 1 line
2.30.2
Jakub Kicinski
maintainerQuoted 9 lines · On Wed, 11 May 2022 15:30:15 -0400 David Ober wrote:
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 featureThis also adds in the device IDs for the Lenovo USB Dongle and one other USB-C dock
Signed-off-by David Ober <[email protected]>
Argh. Don't repost patches more than once every 24 hours.
There are 200+ emails sent to netdev every day, let all the feedback come in.
I'm dropping this for now.
Quoted 48 lines · David Ober
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 featureThis also adds in the device IDs for the Lenovo USB Dongle and one other USB-C dock
Signed-off-by David Ober <[email protected]>--- drivers/net/usb/r8152.c | 10 ++++++++++ 1 file changed, 10 insertions(+)drivers/net/usb/r8152.c +10
-0@@ -771,6 +771,8 @@ enum rtl8152_flags { };#define DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2 0x3082 +#define DEVICE_ID_THINKPAD_USB_C_DOCK_GEN3 0x3062 +#define DEVICE_ID_THINKPAD_USB_C_DONGLE 0x720c#define DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2 0xa387struct tally_counter {@@ -9644,10 +9646,18 @@ static int rtl8152_probe(struct usb_interface *intf,if (le16_to_cpu (udev->descriptor.idVendor) ==VENDOR_ID_LENOVO ) {switch (le16_to_cpu (udev->descriptor.idProduct)) { +case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN3 : +case DEVICE_ID_THINKPAD_USB_C_DONGLE :case DEVICE_ID_THINKPAD_THUNDERBOLT3_DOCK_GEN2 :case DEVICE_ID_THINKPAD_USB_C_DOCK_GEN2 : tp->lenovo_macpassthru =1 ; } + }else if ((le16_to_cpu (udev->descriptor.idVendor) ==VENDOR_ID_REALTEK ) && + (le16_to_cpu (udev->parent->descriptor.idVendor) ==VENDOR_ID_LENOVO )) { +switch (le16_to_cpu (udev->descriptor.idProduct)) { +case 0x8153 : + tp->lenovo_macpassthru =1 ; + } } if (le16_to_cpu(udev->descriptor.bcdDevice) == 0x3011 && udev->serial &&Signature · 1 line
2.30.2
Hi,
This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.
You are receiving this message because of the following common error(s) as indicated below:
- This looks like a new version of a previously submitted patch, but you did not list below the --- line any changes from the previous version. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what needs to be done here to properly describe this.
If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.
thanks,
greg k-h's patch email bot