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)
commitbf2012d91a826b96e015dbbfdc1ca55bcb8819d1
tree0a323f2e0138faa47bb19400723dd7efe79e5022
parent99b500e98937b94f58352a0d3e4bd9c2ae36fca0
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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28380 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c