Skip to content

Commit 3cf533f

Browse files
clementlegergregkh
authored andcommitted
net: phy: DP83822: clear MISR2 register to disable interrupts
[ Upstream commit 37c9d66 ] MISR1 was cleared twice but the original author intention was probably to clear MISR1 & MISR2 to completely disable interrupts. Fix it to clear MISR2. Fixes: 87461f7 ("net: phy: DP83822 initial driver submission") Signed-off-by: Clément Léger <clement.leger@bootlin.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20220309142228.761153-1-clement.leger@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 21044e6 commit 3cf533f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/phy/dp83822.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static int dp83822_config_intr(struct phy_device *phydev)
289289
if (err < 0)
290290
return err;
291291

292-
err = phy_write(phydev, MII_DP83822_MISR1, 0);
292+
err = phy_write(phydev, MII_DP83822_MISR2, 0);
293293
if (err < 0)
294294
return err;
295295

0 commit comments

Comments
 (0)