diff options
author | Voon Weifeng <weifeng.voon@intel.com> | 2021-06-29 06:08:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-29 21:34:48 +0300 |
commit | 1dd53a61488d3fd916967fa334e95866637b0b2a (patch) | |
tree | 33375a899d95034d4089d4abf945bd39ee272b1b /drivers | |
parent | 945beb7556334166900508fab7e4f50fcd233593 (diff) | |
download | linux-1dd53a61488d3fd916967fa334e95866637b0b2a.tar.xz |
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')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 |
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; } |