From: Tom Rini Date: Mon, 8 May 2017 11:27:09 -0400 Subject: [U-Boot] [PATCH] drivers: net: cpsw: abort init() on aneg timeout In-Reply-To: <20170508151956.12231-1-nsekhar@ti.com> References: <20170508151956.12231-1-nsekhar@ti.com> Message-ID: <20170508152709.GP12511@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, May 08, 2017 at 08:49:56PM +0530, Sekhar Nori 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: