From: Peter Tyser Date: Tue, 04 Aug 2009 17:50:15 -0500 Subject: [U-Boot] [PATCH] tsec: Wait for auto-negotiation to complete without link In-Reply-To: <1248034442.15400.15.camel@ptyser-laptop> References: <1233782045-488-1-git-send-email-ptyser@xes-inc.com> <1248034442.15400.15.camel@ptyser-laptop> Message-ID: <1249426215.29765.191.camel@localhost.localdomain> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, 2009-07-19 at 15:14 -0500, Peter Tyser wrote: > On Wed, 2009-02-04 at 15:14 -0600, Peter Tyser wrote: > > Previously, waiting for auto-negotiation would only occur if a valid > > link had been detected. Problems arose when attempting to use a > > tsec immediately after bootup but before link was achieved, eg: > > => dhcp > > Auto-neg error, defaulting to 10BT/HD > > eTSEC1: No link. > > Auto-neg error, defaulting to 10BT/HD > > eTSEC2: No link. > > => > > > > With this patch applied the same operation as above resulted in: > > => dhcp > > Waiting for PHY auto negotiation to complete. done > > Enet starting in 1000BT/FD > > Speed: 1000, full duplex > > > > Signed-off-by: Peter Tyser > > This patch originally spawned a lot of discussion but nothing came of > it. Could we get it applied? If not, what do I need to do to get a > similar change in? > > Right now if you have autoboot enabled that uses network operation, you > have to add an arbitrary delay to the boot process to give > autonegotiation time to complete, which is annoying. The negotiation > time varies depending on switch too, so the delay can never be exact. Ping...