]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Speed down the PHY if WoL to save energy
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Mon, 27 Jul 2020 11:05:20 +0000 (19:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 00:48:20 +0000 (17:48 -0700)
commite7abcd2afa6b98dec09746567ae2c68d33b9db34
tree4f87b2fa3a9e7c7abc9a8fa8e13c05999206f6d5
parent90dfa4dab77cde3505f5770a4d74ba2a190bdf9d
net: stmmac: Speed down the PHY if WoL to save energy

When WoL is enabled and the machine is powered off, the PHY remains
waiting for wakeup events at max speed, which is a waste of energy.

Slow down the PHY speed before stopping the ethernet if WoL is enabled,

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c