[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <7a212841-6499-18be-b646-33ea69fb7da2@gmail.com>
Date: Mon, 5 Mar 2018 22:29:43 +0100
From: Heiner Kallweit <hkallweit1@...il.com>
To: Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
David Miller <davem@...emloft.net>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: [PATCH v2 net-next 0/2] net: phy: remove phy_error from
phy_disable_interrupts
All callers of phy_disable_interrupts() call phy_error() in the error
case. Therefore we don't need to do this within the function too.
This change also allows us to use phy_disable_interrupts() in code
holding phydev->lock (because phy_error() takes this lock).
Make use of this in phy_stop().
v2:
- splitted into two separate patches
Heiner Kallweit (2):
net: phy: remove phy_error from phy_disable_interrupts
net: phy: use phy_disable_interrupts in phy_stop
drivers/net/phy/phy.c | 22 ++++------------------
1 file changed, 4 insertions(+), 18 deletions(-)
--
2.16.2
Powered by blists - more mailing lists