tsec: Wait for auto-negotiation to complete without link
authorPeter Tyser <ptyser@xes-inc.com>
Wed, 4 Feb 2009 21:14:05 +0000 (15:14 -0600)
committerBen Warren <biggerbadderben@gmail.com>
Fri, 21 Aug 2009 17:35:30 +0000 (10:35 -0700)
commitb1e849f2201bbbf3ca81fde164f154f9caf7f0e9
tree12133d4f01af09b347e49ac35311edbb925ec6cf
parent477fa6378fbd3e47a5e2e83d0dd3970d5b1c8371
tsec: Wait for auto-negotiation to complete without link

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@xes-inc.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
drivers/net/tsec.c