]> git.baikalelectronics.ru Git - kernel.git/commit
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 22:19:54 +0000 (15:19 -0700)
commitc5e9438cc76c26f5e62fa0dd15a10b23db53ed03
tree03791696cc800c5e8f1461b45f72d17893639e61
parent2cb137c29082bdca85f9e10f6afacdad6600e05e
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: ddb7fa9c7ec5 ("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