Description of problem: Ethernet adapter in the Lenovo Thinkpad OneLink Pro Dock uses the r8152 driver instead of ax88179_178a. Hardware detects network link whilst the system reports no cable attatched. Version-Release number of selected component (if applicable): $ uname -r 4.1.6-201.fc22.x86_64 Additional info: $ lshw ... *-network:2 description: Ethernet interface physical id: 3 logical name: enp0s20u3u1u3 serial: 00:50:b6:c3:9d:b4 size: 1Gbit/s capacity: 1Gbit/s capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8152 driverversion=v1.08.0 (2015/01/13) duplex=full link=no multicast=yes port=MII speed=1Gbit/s
Workaround: Modified the ax88179_178a driver to detect the OneLinkPro Dock instead of the OneLink USB3.0 Dock. No side effects as far I can tell for now. http://www.asix.com.tw/products.php?op=pItemdetail&PItemID=131;71;112 http://www.asix.com.tw/FrootAttach/driver/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE.tar.gz -- ax88179_178a.c.org 2015-07-22 11:37:31.000000000 +0200 +++ ax88179_178a.c 2015-09-17 15:07:35.956140204 +0200 @@ -2130,7 +2130,7 @@ .driver_info = (unsigned long) &sitecom_info, }, { /* ThinkPad OneLinkDock USB GigaLAN */ - USB_DEVICE(0x17ef, 0x304b), + USB_DEVICE(0x17ef, 0x304f), .driver_info = (unsigned long) &lenovo_info, }, { /* Toshiba USB3.0 to Gigabit LAN Adapter */
Turns out my assumption was wrong, network support in the Onelink Pro dock has been added to r8152 in version 4.2.0 of the kernel. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/net/usb/r8152.c?id=1006da19ea6603135773a79f09e4e931be460429 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/net/usb/r8152.c?id=fb02eb4a29303295f2fed8a69d9aa703792c834b