]> git.baikalelectronics.ru Git - kernel.git/commit
net/phy: micrel: configure intterupts after autoneg workaround
authorZach Brown <zach.brown@ni.com>
Tue, 20 Jun 2017 17:48:11 +0000 (12:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jun 2017 15:05:16 +0000 (11:05 -0400)
commitd6a4d5d73c83c152c5c7d625dbe38c0975126c35
treedf6fda8f48b3a5aea7e0ffe50a5c631fe44393f9
parentea93bf28bc05433efb6f997f47725822f461389c
net/phy: micrel: configure intterupts after autoneg workaround

The commit ("net/phy: micrel: Add workaround for bad autoneg") fixes an
autoneg failure case by resetting the hardware. This turns off
intterupts. Things will work themselves out if the phy polls, as it will
figure out it's state during a poll. However if the phy uses only
intterupts, the phy will stall, since interrupts are off. This patch
fixes the issue by calling config_intr after resetting the phy.

Fixes: 14579c6b300c ("net/phy: micrel: Add workaround for bad autoneg ")
Signed-off-by: Zach Brown <zach.brown@ni.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c