Skip to content

Commit

Permalink
r8169: (re)init phy on resume
Browse files Browse the repository at this point in the history
commit fccec10 upstream.

Fix switching device to low-speed mode after resume reported in:
https://bugzilla.redhat.com/show_bug.cgi?id=502974

Reported-and-tested-by: Laurentiu Badea <bugzilla-redhat@wotevah.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Francois Romieu <romieu@fr.zoreil.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Stanislaw Gruszka authored and Greg Kroah-Hartman committed Dec 9, 2010
1 parent 1f72786 commit 719f3a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -4889,6 +4889,9 @@ static int rtl8169_resume(struct device *device)
{
struct pci_dev *pdev = to_pci_dev(device);
struct net_device *dev = pci_get_drvdata(pdev);
struct rtl8169_private *tp = netdev_priv(dev);

rtl8169_init_phy(dev, tp);

if (netif_running(dev))
__rtl8169_resume(dev);
Expand Down Expand Up @@ -4929,6 +4932,8 @@ static int rtl8169_runtime_resume(struct device *device)
tp->saved_wolopts = 0;
spin_unlock_irq(&tp->lock);

rtl8169_init_phy(dev, tp);

__rtl8169_resume(dev);

return 0;
Expand Down

0 comments on commit 719f3a3

Please sign in to comment.