net: usb: r8152: Add MAC passthrough support for more Lenovo Docks
authorAaron Ma <aaron.ma@canonical.com>
Tue, 16 Nov 2021 14:19:17 +0000 (22:19 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2021 14:46:19 +0000 (14:46 +0000)
commitf77b83b5bbab53d2be339184838b19ed2c62c0a5
treed78986b9e0240b293a530722764474c70eab4aa9
parent9311ccef2782488ab58676c8282f9f71d01cebf5
net: usb: r8152: Add MAC passthrough support for more Lenovo Docks

Like ThinkaPad Thunderbolt 4 Dock, more Lenovo docks start to use the original
Realtek USB ethernet chip ID 0bda:8153.

Lenovo Docks always use their own IDs for usb hub, even for older Docks.
If parent hub is from Lenovo, then r8152 should try MAC passthrough.
Verified on Lenovo TBT3 dock too.

Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c