Re: [PATCH net-next] net: phy: remove call to phy_error from phy_disable_interrupts

2018-03-05 Thread Andrew Lunn
On Mon, Mar 05, 2018 at 08:30:49PM +0100, Heiner Kallweit wrote: > 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 (

[PATCH net-next] net: phy: remove call to phy_error from phy_disable_interrupts

2018-03-05 Thread Heiner Kallweit
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(). Sig