]> git.baikalelectronics.ru Git - kernel.git/commit
net/fec: carrier off initially to avoid root mount failure
authorOskar Schirmer <oskar@linutronix.de>
Thu, 7 Oct 2010 02:30:30 +0000 (02:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Oct 2010 04:12:27 +0000 (21:12 -0700)
commit443ce2d8fcf5277d48cf1ecdfe3a72ce3729d4bc
treeffb5de06aefd486cd5d0bd7d23b845ebcb1628fe
parentae01507355cff9bcb9b77e76fd4bab48d980a9ce
net/fec: carrier off initially to avoid root mount failure

with hardware slow in negotiation, the system did freeze
while trying to mount root on nfs at boot time.

the link state has not been initialised so network stack
tried to start transmission right away. this caused instant
retries, as the driver solely stated business upon link down,
rendering the system unusable.

notify carrier off initially to prevent transmission until
phylib will report link up.

Signed-off-by: Oskar Schirmer <oskar@linutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fec.c