summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorClément Léger <clement.leger@bootlin.com>2022-03-09 15:22:28 +0100
committerJakub Kicinski <kuba@kernel.org>2022-03-10 12:24:40 -0800
commit37c9d66c95564c85a001d8a035354f0220a1e1c3 (patch)
tree0bc13c00fa3aa4bb1f7fc5284696b506d0083d37 /drivers
parent2ac5b58e645c66932438bb021cb5b52097ce70b0 (diff)
downloadlinux-37c9d66c95564c85a001d8a035354f0220a1e1c3.tar.bz2
net: phy: DP83822: clear MISR2 register to disable interrupts
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: 87461f7a58ab ("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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/phy/dp83822.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c
index 211b5476a6f5..ce17b2af3218 100644
--- a/drivers/net/phy/dp83822.c
+++ b/drivers/net/phy/dp83822.c
@@ -274,7 +274,7 @@ static int dp83822_config_intr(struct phy_device *phydev)
if (err < 0)
return err;
- err = phy_write(phydev, MII_DP83822_MISR1, 0);
+ err = phy_write(phydev, MII_DP83822_MISR2, 0);
if (err < 0)
return err;