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>
This commit is contained in:
committed by
David S. Miller
parent
945beb7556
commit
1dd53a6148
@@ -1118,6 +1118,7 @@ static int __maybe_unused intel_eth_pci_suspend(struct device *dev)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
pci_wake_from_d3(pdev, true);
|
pci_wake_from_d3(pdev, true);
|
||||||
|
pci_set_power_state(pdev, PCI_D3hot);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user