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

Commit 713b4a33 authored by Dan Murphy's avatar Dan Murphy Committed by David S. Miller
Browse files

net: phy: DP83TC811: Fix disabling interrupts



Fix a bug where INT_STAT1 was written twice and
INT_STAT2 was ignored when disabling interrupts.

Fixes: b753a9fa ("net: phy: DP83TC811: Introduce support for the DP83TC811 phy")
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e7c7faa9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@ static int dp83811_config_intr(struct phy_device *phydev)
		if (err < 0)
			return err;

		err = phy_write(phydev, MII_DP83811_INT_STAT1, 0);
		err = phy_write(phydev, MII_DP83811_INT_STAT2, 0);
	}

	return err;