Skip to content

Commit

Permalink
forcedeth: Fix resume from hibernation regression.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ed Swierk authored and David S. Miller committed Apr 7, 2009
1 parent d1d88e5 commit 35a7433
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/* restore phy state, including autoneg */
phy_init(dev);

netif_device_attach(dev);
if (netif_running(dev)) {
rc = nv_open(dev);
Expand Down

0 comments on commit 35a7433

Please sign in to comment.