]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 19 Jan 2016 03:33:06 +0000 (19:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jan 2016 18:48:51 +0000 (10:48 -0800)
commit0c795292731b311378f14ad29f995be6b392ea8d
tree8cbbd5393b2772d57d4a102a132bf508d7104934
parent7d3d4a4e8b12689ec69bcc10ea20ab27db4fc053
net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS

Commit 8ca3a4812ae8 ("phy: fix the use of PHY_IGNORE_INTERRUPT") changed
a hunk in phy_state_machine() in the PHY_RUNNING case which was not
needed. The change essentially makes the PHY library treat PHY devices
with PHY_IGNORE_INTERRUPT to keep polling for the PHY device, even
though the intent is not to do it.

Fix this by reverting that specific hunk, which makes the PHY state
machine wait for state changes, and stay in the PHY_RUNNING state for as
long as needed.

Fixes: 8ca3a4812ae8 ("phy: fix the use of PHY_IGNORE_INTERRUPT")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c