ar8216: after a switch reset poll until BCMR_RESET is cleared
authorFelix Fietkau <nbd@openwrt.org>
Wed, 19 Nov 2014 20:17:37 +0000 (20:17 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 19 Nov 2014 20:17:37 +0000 (20:17 +0000)
commit031a80762fcfcf3ac95523fd2c1a5e7acec4d41f
tree2cfc79dc28e1e52d9c942b7784a558347e955982
parenta31b9fd14de0d49147dbed1ac6044c945767408f
ar8216: after a switch reset poll until BCMR_RESET is cleared

Currently there is a fixed 1000ms wait time after the switch was reset.
Most if not all switches need much less time to perform a reset.
Therefore replace the fixed wait time with polling for BMCR_RESET to
be cleared.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43329 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c