]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: request and handle clocks
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 1 Sep 2020 22:59:12 +0000 (15:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Sep 2020 22:08:03 +0000 (15:08 -0700)
commit6c0ff6ddcd6437258213c9120c65509c216e0a73
treecb63d252e803121e6aaae1b2fe00d06052e8bf3c
parent9cce42276b9bcc64bd99988e241aa62d33ca86ab
net: dsa: bcm_sf2: request and handle clocks

Fetch the corresponding clock resource and enable/disable it during
suspend/resume if and only if we have no ports defined for Wake-on-LAN.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c
drivers/net/dsa/bcm_sf2.h