diff options
author | Dan Murphy <dmurphy@ti.com> | 2018-06-29 17:28:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-06-30 14:13:01 +0200 |
commit | 713b4a33524721767703956654f4d6713c556f2b (patch) | |
tree | ded03d8c242c918e7b5ef8e5ea056701e1595d0c /drivers/net | |
parent | net/ipv6: Fix updates to prefix route (diff) | |
download | linux-713b4a33524721767703956654f4d6713c556f2b.tar.xz linux-713b4a33524721767703956654f4d6713c556f2b.zip |
net: phy: DP83TC811: Fix disabling interrupts
Fix a bug where INT_STAT1 was written twice and
INT_STAT2 was ignored when disabling interrupts.
Fixes: b753a9faaf9a ("net: phy: DP83TC811: Introduce support for the DP83TC811 phy")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/phy/dp83tc811.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/dp83tc811.c b/drivers/net/phy/dp83tc811.c index 081d99aa3985..49ac678eb2dc 100644 --- a/drivers/net/phy/dp83tc811.c +++ b/drivers/net/phy/dp83tc811.c @@ -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; |