Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b54629e2 authored by hahnjo's avatar hahnjo Committed by David S. Miller
Browse files

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: default avatarJonas Hahnfeld <linux@hahnjo.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4fb09a87
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1388,6 +1388,9 @@ static int alx_resume(struct device *dev)
{
{
	struct pci_dev *pdev = to_pci_dev(dev);
	struct pci_dev *pdev = to_pci_dev(dev);
	struct alx_priv *alx = pci_get_drvdata(pdev);
	struct alx_priv *alx = pci_get_drvdata(pdev);
	struct alx_hw *hw = &alx->hw;

	alx_reset_phy(hw);


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