OSDN Git Service

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)
commite9ec5c3bd238f2cbe9d9696e994f36d1b249c058
treecb63d252e803121e6aaae1b2fe00d06052e8bf3c
parente489aea7a6557350a2db0312ed8b89cc26b9744c
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