[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210629030859.1273157-4-pei.lee.ling@intel.com>
Date: Tue, 29 Jun 2021 11:08:59 +0800
From: Ling Pei Lee <pei.lee.ling@...el.com>
To: Giuseppe Cavallaro <peppe.cavallaro@...com>,
Alexandre Torgue <alexandre.torgue@...s.st.com>,
Jose Abreu <joabreu@...opsys.com>, davem@...emloft.net,
Jakub Kicinski <kuba@...nel.org>,
Maxime Coquelin <mcoquelin.stm32@...il.com>,
Russell King <linux@...linux.org.uk>, weifeng.voon@...el.com,
boon.leong.ong@...el.com, vee.khee.wong@...ux.intel.com,
vee.khee.wong@...el.com, tee.min.tan@...el.com,
michael.wei.hong.sit@...el.com, netdev@...r.kernel.org,
linux-stm32@...md-mailman.stormreply.com,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Cc: pei.lee.ling@...el.com
Subject: [PATCH net-next V2 3/3] stmmac: intel: set PCI_D3hot in suspend
From: Voon Weifeng <weifeng.voon@...el.com>
During suspend, set the Intel mgbe to D3hot state
to save power consumption.
Signed-off-by: Voon Weifeng <weifeng.voon@...el.com>
Signed-off-by: Ling Pei Lee <pei.lee.ling@...el.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
index 73be34a10a4c..69a725b661c2 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c
@@ -1088,6 +1088,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;
}
--
2.25.1
Powered by blists - more mailing lists