From: Voon Weifeng Date: Tue, 29 Jun 2021 03:08:59 +0000 (+0800) Subject: stmmac: intel: set PCI_D3hot in suspend X-Git-Tag: v5.15~843^2~4^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dd53a61488d3fd916967fa334e95866637b0b2a;p=platform%2Fkernel%2Flinux-starfive.git stmmac: intel: set PCI_D3hot in suspend During suspend, set the Intel mgbe to D3hot state to save power consumption. Signed-off-by: Voon Weifeng Signed-off-by: Ling Pei Lee Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index 689bcd9..8e8778c 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -1118,6 +1118,7 @@ static int __maybe_unused intel_eth_pci_suspend(struct device *dev) return ret; pci_wake_from_d3(pdev, true); + pci_set_power_state(pdev, PCI_D3hot); return 0; }