]> asedeno.scripts.mit.edu Git - linux.git/commit
net: mvpp2: cycle comphy to power it down
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 17 Dec 2019 15:47:36 +0000 (15:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2019 01:27:29 +0000 (17:27 -0800)
commit6791c102602b428b729890f6a38a319dfe225aba
treebcb4e603c154bf4ff681f617c1ddd3cc225e7bb2
parent0dea4d039a7fdd97790a71da37c1ce67a5b52769
net: mvpp2: cycle comphy to power it down

Presently, at boot time, the comphys are enabled. For firmware
compatibility reasons, the comphy driver does not power down the
comphys at boot. Consequently, the ethernet comphys are left active
until the network interfaces are brought through an up/down cycle.

If the port is never used, the port wastes power needlessly. Arrange
for the ethernet comphys to be cycled by the mvpp2 driver as if the
interface went through an up/down cycle during driver probe, thereby
powering them down.

This saves:
  270mW per 10G SFP+ port on the Macchiatobin Single Shot (eth0/eth1)
  370mW per 10G PHY port on the Macchiatobin Double Shot (eth0/eth1)
  160mW on the SFP port on either Macchiatobin flavour (eth3)

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Acked-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c