• Peter Tyser's avatar
    tsec: Wait for auto-negotiation to complete without link · b1e849f2
    Peter Tyser authored
    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: default avatarPeter Tyser <ptyser@xes-inc.com>
    Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
tsec.c 48.1 KB