summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorVoon Weifeng <weifeng.voon@intel.com>2021-06-29 11:08:59 +0800
committerDavid S. Miller <davem@davemloft.net>2021-06-29 11:34:48 -0700
commit1dd53a61488d3fd916967fa334e95866637b0b2a (patch)
tree33375a899d95034d4089d4abf945bd39ee272b1b /drivers/net
parent945beb7556334166900508fab7e4f50fcd233593 (diff)
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 <weifeng.voon@intel.com> Signed-off-by: Ling Pei Lee <pei.lee.ling@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
index 689bcd947f7a..8e8778cfbbad 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;
}