Skip to content
Commit 5e3768a4 authored by Daniel González Cabanelas's avatar Daniel González Cabanelas Committed by David S. Miller
Browse files

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: default avatarDaniel González Cabanelas <dgcbueu@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6545be82
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment