Skip to content

Commit b54629e

Browse files
hahnjodavem330
authored andcommitted
alx: Reset phy speed after resume
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>
1 parent 4fb09a8 commit b54629e

File tree

1 file changed

+3
-0
lines changed
  • drivers/net/ethernet/atheros/alx

1 file changed

+3
-0
lines changed

drivers/net/ethernet/atheros/alx/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,6 +1388,9 @@ static int alx_resume(struct device *dev)
13881388
{
13891389
struct pci_dev *pdev = to_pci_dev(dev);
13901390
struct alx_priv *alx = pci_get_drvdata(pdev);
1391+
struct alx_hw *hw = &alx->hw;
1392+
1393+
alx_reset_phy(hw);
13911394

13921395
if (!netif_running(alx->dev))
13931396
return 0;

0 commit comments

Comments
 (0)