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)
commitb7d0f08e9129c45ed41bc0cfa8e77067881e45fd
tree822295d6c606bebb283acba19b823ef670be8d94
parent7e2556e40026a1b0c16f37446ab398d5a5a892e4
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