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)
commit2a83a905fc360ed2f1d85cc61d947ed849cd1a92
tree2cfc79dc28e1e52d9c942b7784a558347e955982
parentf9d787001e39a57d471f13d724b4267e1cbde92f
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>
SVN-Revision: 43329
target/linux/generic/files/drivers/net/phy/ar8216.c