Skip to contentSkip to conversation

net: phy: DP83TC811: Fix diabling interrupts

PATCH In review Dan Murphy 2 participants 2 messages Jun 28, 2018

Subsystems (3)
lore
Share & tools
lore

Dan Murphy

author
#0 lore raw

PATCH 1/1 net: phy: DP83TC811: Fix diabling interrupts

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

---
 drivers/net/phy/dp83tc811.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/dp83tc811.c +1 -1
index 081d99aa3985..49ac678eb2dc 100644
@@ -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;
Signature · 1 line
2.17.0.582.gccdcbd54c
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Dan Murphy

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

Hi Dan

You should put in the subject line which tree this is for, eg. [PATCH net].

Also, you should add a fixes tag, indicating when this bug as added.

Fixes b753a9faaf9a ("net: phy: DP83TC811: Introduce support for the DP83TC811 phy")

Andrew