Skip to content

Commit 713b4a3

Browse files
Dan Murphydavem330
authored andcommitted
net: phy: DP83TC811: Fix disabling interrupts
Fix a bug where INT_STAT1 was written twice and INT_STAT2 was ignored when disabling interrupts. Fixes: b753a9f ("net: phy: DP83TC811: Introduce support for the DP83TC811 phy") Reviewed-by: Andrew Lunn <[email protected]> Signed-off-by: Dan Murphy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e7c7faa commit 713b4a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/dp83tc811.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static int dp83811_config_intr(struct phy_device *phydev)
222222
if (err < 0)
223223
return err;
224224

225-
err = phy_write(phydev, MII_DP83811_INT_STAT1, 0);
225+
err = phy_write(phydev, MII_DP83811_INT_STAT2, 0);
226226
}
227227

228228
return err;

0 commit comments

Comments
 (0)