Skip to content

Commit 1dd53a6

Browse files
wvoondavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Ling Pei Lee <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 945beb7 commit 1dd53a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,7 @@ static int __maybe_unused intel_eth_pci_suspend(struct device *dev)
11181118
return ret;
11191119

11201120
pci_wake_from_d3(pdev, true);
1121+
pci_set_power_state(pdev, PCI_D3hot);
11211122
return 0;
11221123
}
11231124

0 commit comments

Comments
 (0)