Home
last modified time | relevance | path

Searched hist:"96 d1d84c79b63e5882f09be451227f7145ea8599" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/net/
H A Dcpsw.c96d1d84c79b63e5882f09be451227f7145ea8599 Mon May 08 15:19:56 UTC 2017 Sekhar Nori <nsekhar@ti.com> drivers: net: cpsw: abort init() on aneg timeout

Abort CPSW driver init when auto-negotiation of link
times out. Currently, the code ignores return status
of phy_startup(), and goes ahead with network operation
(like DHCP) even though the link may be down.

Instead, abort init process if link is down or if there
is another error, so phy_startup() can easily be retried
again. This also helps quick fallback to next network interface
(like USB RNDIS) without inordinate delay.

Tested on AM571x IDK and AM335x BeagleBone black.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>