ag71xx: close a race between the phy state machine and link state
authorJonas Gorski <jogo@openwrt.org>
Sat, 8 Oct 2011 11:37:14 +0000 (11:37 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sat, 8 Oct 2011 11:37:14 +0000 (11:37 +0000)
commitc674c874b7e739c210f09bb24c5c846e077bb297
tree329b684c4fddcb072b5d6133627c4b0980300925
parenta9d6a59cff2b8a4c33c04181d1f9845e1ace86fa
ag71xx: close a race between the phy state machine and link state

A fast stop/start cycle could leave the ag71xx interrupts and tx engine
disabled when using a phy driver with a fixed link and the start/stop
happens between two phy state machine polls.

Prevent this by always forcing the link down on stop regardless of phy
state and having a phy connected.

SVN-Revision: 28380
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c