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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 08:04:39 +0000 (09:04 +0100)
commit9774ec30cf7bbcdf98a509ce179199de13439f21
treec59f0df217cb3ac5bf3ecc80f615f4868bb0fd5c
parent59219569202156e271c416d17e75ba1b9c552568
net: usb: r8152: Add MAC passthrough support for more Lenovo Docks

[ Upstream commit f77b83b5bbab53d2be339184838b19ed2c62c0a5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/r8152.c