Jun 6 17:29:38 ubuntu kernel: [ 2362.299292] Atheros 8031 ethernet QCOM8070:00:04: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=QCOM8070:00:04, irq=-2)
Jun 6 17:29:38 ubuntu kernel: [ 2362.299360] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Jun 6 17:29:41 ubuntu kernel: [ 2365.028452] 803x_aneg_done: SGMII link is not ok
ubuntu@ubuntu:~$ sudo dhclient -v eth0
Listening on LPF/eth0/8c:fd:f0:06:92:a5
Sending on LPF/eth0/8c:fd:f0:06:92:a5
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x75753944)
...
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ubuntu@ubuntu:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 8c:fd:f0:06:92:a5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:40
Testing on QDF2400 ARM64 platform.
== Without the patch ==
ubuntu@ubuntu:~$ sudo ifconfig eth0 up
Jun 6 17:29:38 ubuntu kernel: [ 2362.299292] Atheros 8031 ethernet QCOM8070:00:04: attached PHY driver [Atheros 8031 ethernet] (mii_bus: phy_addr= QCOM8070: 00:04, irq=-2) NETDEV_ UP): eth0: link is not ready
Jun 6 17:29:38 ubuntu kernel: [ 2362.299360] IPv6: ADDRCONF(
Jun 6 17:29:41 ubuntu kernel: [ 2365.028452] 803x_aneg_done: SGMII link is not ok
ubuntu@ubuntu:~$ sudo dhclient -v eth0 8c:fd:f0: 06:92:a5 8c:fd:f0: 06:92:a5
Listening on LPF/eth0/
Sending on LPF/eth0/
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x75753944)
...
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
ubuntu@ubuntu:~$ ifconfig eth0
collisions: 0 txqueuelen:1000
Interrupt: 40
eth0 Link encap:Ethernet HWaddr 8c:fd:f0:06:92:a5
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)