net: dsa: bcm_sf2: Call setup during switch resume
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 9 Oct 2018 23:48:58 +0000 (16:48 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2018 05:53:03 +0000 (22:53 -0700)
commitabd01ba2f7d74bf138ce2404a76714ecbc175dc9
tree54a568ff12ac3c3a5b13d7c65b91eee30fc14ea9
parent448765e1cfa6b9b286dc45b0224b9a641b05eeb9
net: dsa: bcm_sf2: Call setup during switch resume

There is no reason to open code what the switch setup function does, in
fact, because we just issued a switch reset, we would make all the
register get their default values, including for instance, having unused
port be enabled again and wasting power and leading to an inappropriate
switch core clock being selected.

Fixes: 8cfa94984c9c ("net: dsa: bcm_sf2: add suspend/resume callbacks")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c