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)
commit37fefea79b74e6017becfb20caf6e0fa70649170
tree6788c151a00ebcf95a15111f5adb8a0e6b5dc25e
parent6dcdc2bb05923ee26a1403859ae05ee31cfab580
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