net: dsa: b53: Implement software reset for 58xx devices
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 24 Apr 2017 21:27:22 +0000 (14:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Apr 2017 22:28:56 +0000 (18:28 -0400)
commit3fb22b0534e412569dd67dec625b4a051c7c2d7e
treecae0bc97044b2fad330017c14cc05d43f6091789
parenta424f0de61638cbb5047e0a888c54da9cf471f90
net: dsa: b53: Implement software reset for 58xx devices

Implement the correct software reset sequence for 58xx devices by
setting all 3 reset bits and polling for the SW_RST bit to clear itself
without a given timeout. We cannot use is58xx() here because that would
also include the 7445/7278 Starfighter 2 which have their own driver
doing the reset earlier on due to the HW specific integration.

Fixes: 991a36bb4645 ("net: dsa: b53: Add support for BCM585xx/586xx/88312 integrated switch")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/b53/b53_regs.h