net: phy: core: don't disable device interrupts in phy_change
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 30 Nov 2017 22:57:00 +0000 (23:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Dec 2017 15:23:42 +0000 (10:23 -0500)
commitc34bc2b5059c515aebc3dde4c34baba6db3fd43f
tree6b257a9110766e92b0aaff09b0f973970c40fa8a
parenta6d1642dab0c49829cda61508cbdc97172815ff7
net: phy: core: don't disable device interrupts in phy_change

If state is not PHY_HALTED I see no need to temporarily disable
interrupts on the device. As long as the current interrupt isn't acked
on the device no new interrupt can happen anyway.

In addition remove a unneeded enabling of interrupts in the state
machine when handling state PHY_CHANGELINK.

Tested on a Odroid-C2 with RTL8211F phy in interrupt mode.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c