]> Git Repo - linux.git/commitdiff
net: phy: DP83822: clear MISR2 register to disable interrupts
authorClément Léger <[email protected]>
Wed, 9 Mar 2022 14:22:28 +0000 (15:22 +0100)
committerJakub Kicinski <[email protected]>
Thu, 10 Mar 2022 20:24:40 +0000 (12:24 -0800)
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 <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
drivers/net/phy/dp83822.c

index 211b5476a6f516666e004ea03382eb716a5a2103..ce17b2af3218f0c0a64a4c1535af279791407b4e 100644 (file)
@@ -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;
 
This page took 0.048824 seconds and 4 git commands to generate.