r8152: Add macpassthru support for ThinkPad Thunderbolt 3 Dock Gen 2
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 5 Nov 2019 11:24:52 +0000 (19:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 02:30:30 +0000 (18:30 -0800)
commit9647722befbedcd6735e00655ffec392c05f0c56
tree790c20015ba7d8d34b621a803e9c27821b55dac5
parent86e8f2988786cb7ccf4833e6d32bc91a28a989b2
r8152: Add macpassthru support for ThinkPad Thunderbolt 3 Dock Gen 2

ThinkPad Thunderbolt 3 Dock Gen 2 is another docking station that uses
RTL8153 based USB ethernet.

The device supports macpassthru, but it failed to pass the test of -AD,
-BND and -BD. Simply bypass these tests since the device supports this
feature just fine.

Also the ACPI objects have some differences between Dell's and Lenovo's,
so make those ACPI infos no longer hardcoded.

BugLink: https://bugs.launchpad.net/bugs/1827961
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Acked-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ether.c
drivers/net/usb/r8152.c