]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
if_awg: Skip emac reset if configured for internal PHY
authorKyle Evans <kevans@FreeBSD.org>
Wed, 7 Feb 2018 01:54:13 +0000 (01:54 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Wed, 7 Feb 2018 01:54:13 +0000 (01:54 +0000)
commit87fb7f5b584f6f1341df4edd657de206a13c4482
treeb5600816afec4c3e25a67eba2c11ed7a594b09bc
parentc4b72d8b37fa833fabdb034d2611c2ac3e8f0f68
if_awg: Skip emac reset if configured for internal PHY

On the OrangePi One at least, emac reset when an ethernet cable is not
plugged in seems to break ethernet. Soft reset will fail, even with
increasing the delay and retries to wait for up to 20 seconds. This can be
reproduced across at least two different OrangePi One's by simply leaving
ethernet cable unplugged when awg attaches. Whether it's plugged in or not
through u-boot process makes no difference.

Skipping the reset in this configuration doesn't seem to cause any problems,
tried across many many reboots with and without ethernet cable plugged in.

Tested on: OrangePi One
Tested on: Other boards (manu)
Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D13974
sys/arm/allwinner/if_awg.c