]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix WoL for PCI-based setups
authorJose Abreu <Jose.Abreu@synopsys.com>
Tue, 31 Jul 2018 14:08:20 +0000 (15:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Aug 2018 16:35:42 +0000 (09:35 -0700)
commita48a5f58a8c9778d2c90eb0155666eafe279174f
tree822295d6c606bebb283acba19b823ef670be8d94
parentc195032b8eb6b3c076cf5a67e5a251412aac2c21
net: stmmac: Fix WoL for PCI-based setups

WoL won't work in PCI-based setups because we are not saving the PCI EP
state before entering suspend state and not allowing D3 wake.

Fix this by using a wrapper around stmmac_{suspend/resume} which
correctly sets the PCI EP state.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c