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)
commit71e1e8f258934a880d9ee289ca62a20c52ecdd5a
tree0a323f2e0138faa47bb19400723dd7efe79e5022
parentcbd9da165b28d6916dd6b75c09325d300e90f15e
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