forcedeth: Fix resume from hibernation regression.
Reset phy state on resume, fixing a regression caused by powering down the phy on hibernate. Signed-off-by: Ed Swierk <eswierk@aristanetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
d1d88e5de4
commit
35a7433c78
@@ -6117,6 +6117,9 @@ static int nv_resume(struct pci_dev *pdev)
|
|||||||
|
|
||||||
pci_write_config_dword(pdev, NV_MSI_PRIV_OFFSET, NV_MSI_PRIV_VALUE);
|
pci_write_config_dword(pdev, NV_MSI_PRIV_OFFSET, NV_MSI_PRIV_VALUE);
|
||||||
|
|
||||||
|
/* restore phy state, including autoneg */
|
||||||
|
phy_init(dev);
|
||||||
|
|
||||||
netif_device_attach(dev);
|
netif_device_attach(dev);
|
||||||
if (netif_running(dev)) {
|
if (netif_running(dev)) {
|
||||||
rc = nv_open(dev);
|
rc = nv_open(dev);
|
||||||
|
Reference in New Issue
Block a user