alx: Reset phy speed after resume
authorhahnjo <hahnjo@hahnjo.de>
Tue, 12 Nov 2013 17:19:24 +0000 (18:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2013 22:14:42 +0000 (17:14 -0500)
This fixes bug 62491 (https://bugzilla.kernel.org/show_bug.cgi?id=62491).
After resuming some users got the following error flooding the kernel log:
alx 0000:02:00.0: invalid PHY speed/duplex: 0xffff

Signed-off-by: Jonas Hahnfeld <linux@hahnjo.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c

index 5aa5e8146496ba807ece60fe5b287d70a79a8ad4..c3c4c266b8465981b658676617fa79202aa4396d 100644 (file)
@@ -1388,6 +1388,9 @@ static int alx_resume(struct device *dev)
 {
        struct pci_dev *pdev = to_pci_dev(dev);
        struct alx_priv *alx = pci_get_drvdata(pdev);
+       struct alx_hw *hw = &alx->hw;
+
+       alx_reset_phy(hw);
 
        if (!netif_running(alx->dev))
                return 0;