net: dsa: vsc73xx: Assert reset if iCPU is enabled
authorPawel Dembicki <paweldembicki@gmail.com>
Thu, 4 Jul 2019 22:29:07 +0000 (00:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Jul 2019 21:16:32 +0000 (14:16 -0700)
commit1da39ff09e561df9062342563ce8db9b9181a3de
tree49946dda2a1701732f07ad1086ee66d4a3aa15b4
parent631e83bf7c0e801f0ab960a97a3228b2dbf9ebeb
net: dsa: vsc73xx: Assert reset if iCPU is enabled

Driver allow to use devices with disabled iCPU only.

Some devices have pre-initialised iCPU by bootloader.
That state make switch unmanaged. This patch force reset
if device is in unmanaged state. In the result chip lost
internal firmware from RAM and it can be managed.

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/vitesse-vsc73xx-core.c