net: systemport: fetch and use clock resources
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 1 Sep 2020 21:43:47 +0000 (14:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Sep 2020 22:06:03 +0000 (15:06 -0700)
commit31bc72d97656af11b89ebf108685ffc8ded8c5f4
treebdb7f6b7c114b61036915be6597ac8cb326ce87a
parentaf89606924cf8cbf0a81732b63e0ec8768b0fa1b
net: systemport: fetch and use clock resources

We disable clocks shortly after probing the device to save as much power as
possible in case the interface is never used. When bcm_sysport_open() is
invoked, clocks are enabled, and disabled in bcm_sysport_stop().

A similar scheme is applied to the suspend/resume functions.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h