From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Murphy Subject: [PATCH net v2] net: phy: DP83TC811: Fix diabling interrupts Date: Thu, 28 Jun 2018 08:32:53 -0500 Message-ID: <20180628133253.22871-1-dmurphy@ti.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , Dan Murphy To: , Return-path: Received: from fllv0016.ext.ti.com ([198.47.19.142]:50252 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753771AbeF1NdN (ORCPT ); Thu, 28 Jun 2018 09:33:13 -0400 Sender: netdev-owner@vger.kernel.org List-ID: 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 Signed-off-by: Dan Murphy --- v2 - Updated commit message to add the Fixes - http://lists.openwall.net/netdev/2018/06/28/110 drivers/net/phy/dp83tc811.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.17.0.582.gccdcbd54c