[U-Boot] [PATCH] tsec: Wait for auto-negotiation to complete without link

Peter Tyser ptyser at xes-inc.com
Sun Jul 19 22:14:02 CEST 2009


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 <ptyser at xes-inc.com>

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.

Thanks,
Peter



More information about the U-Boot mailing list