Bug 105441 - r8152: Autonegotiation does not detect link
Summary: r8152: Autonegotiation does not detect link
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P1 high
Assignee: Stephen Hemminger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-04 10:52 UTC by Josef Kufner
Modified: 2018-10-26 14:55 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.2.0-1-686-pae #1 SMP Debian 4.2.1-2 (2015-09-27) i686 GNU/Linux
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Josef Kufner 2015-10-04 10:52:56 UTC
Hardware: Thinkpad Yoga 12 and 1Gbps USB ethernet adapter from Lenovo -- lsusb:
  idVendor           0x17ef Lenovo
  idProduct          0x7205
  bcdDevice           30.00
  iManufacturer           1 Lenovo
  iProduct                2 ThinkpadUSBLAN

Link is not detected after plugging ethernet adapter into USB port -- dmesg:

[ 1458.764163] usb 2-2: new SuperSpeed USB device number 6 using xhci_hcd
[ 1458.780614] usb 2-2: New USB device found, idVendor=17ef, idProduct=7205
[ 1458.780620] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1458.780623] usb 2-2: Product: ThinkpadUSBLAN
[ 1458.780625] usb 2-2: Manufacturer: Lenovo
[ 1458.780628] usb 2-2: SerialNumber: 3C18A002BEE5
[ 1458.896539] usb 2-2: reset SuperSpeed USB device number 6 using xhci_hcd
[ 1458.939516] r8152 2-2:1.0 eth0: v1.08.1 (2015/07/28)
[ 1459.035214] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 1459.495124] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1459.541189] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

But when I do:

  ethtool -s eth0 autoneg off

It starts to work correctly -- dmesg:

[ 1528.221326] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

It worked with kernels older than 4.0 (I'm not sure about 4.0). It was broken with 4.1. I'm using kernel from 32bit Debian.
Comment 1 Kamicc 2018-10-26 14:55:54 UTC
Still an issue using 4.15 x86_64. I realize that there may be more Realtek chip based devices which does not work in the similar fashion, i.e:
https://github.com/jakeday/linux-surface/pull/9/commits/11ab9ae29c6236e90aaa18e8d6ce717d3d6e8ede

Note You need to log in before you can comment on or make changes to this bug.