[U-Boot] [PATCH] drivers: net: cpsw: abort init() on aneg timeout
Joe Hershberger
joe.hershberger at ni.com
Tue May 30 20:15:26 UTC 2017
On Mon, May 8, 2017 at 10:19 AM, Sekhar Nori <nsekhar at ti.com> wrote:
> 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 at ti.com>
Acked-by: Joe Hershberger <joe.hershberger at ni.com>
More information about the U-Boot
mailing list