]> git.baikalelectronics.ru Git - kernel.git/commit
net: mvneta: speed down the PHY, if WoL used, to save energy
authorDaniel González Cabanelas <dgcbueu@gmail.com>
Fri, 26 Jun 2020 15:18:19 +0000 (17:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jun 2020 20:36:33 +0000 (13:36 -0700)
commit99c76e4affe1a272361b733c87b819c1c3fb874c
treed2c2384489c0982ad6ef47e6add1db84da13f91f
parentcc515ffe40bfc3086bccb2610429cc666fafc81e
net: mvneta: speed down the PHY, if WoL used, to save energy

Some PHYs connected to this ethernet hardware support the WoL feature.
But when WoL is enabled and the machine is powered off, the PHY remains
waiting for a magic packet at max speed (i.e. 1Gbps), which is a waste of
energy.

Slow down the PHY speed before stopping the ethernet if WoL is enabled,
and save some energy while the machine is powered off or sleeping.

Tested using an Armada 370 based board (LS421DE) equipped with a Marvell
88E1518 PHY.

Signed-off-by: Daniel González Cabanelas <dgcbueu@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c