net: stmmac: dwmac-sun8i: Add a shutdown callback
authorSamuel Holland <samuel@sholland.org>
Wed, 17 Feb 2021 04:20:06 +0000 (22:20 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2021 21:42:56 +0000 (13:42 -0800)
commit96be41d74f2ee94203f2a61e55927b028a10fea6
tree41ddcb9dac16ac46cef58b7c43b338cb376fc77e
parent2743aa245038fea4bd9f62bf98e25dbc6449f2ec
net: stmmac: dwmac-sun8i: Add a shutdown callback

The Ethernet MAC and PHY are usually major consumers of power on boards
which may not be able to fully power off (those with no PMIC). Powering
down the MAC and internal PHY saves power while these boards are "off".

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c