]> 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)
commit6b48a0cfed3a869fb00bf429c5bd0bcb014e089f
tree8cbbd5393b2772d57d4a102a132bf508d7104934
parent3ee00146c471bec051fc2f9cc77b5e736b4bb01a
net: phy: Avoid polling PHY with PHY_IGNORE_INTERRUPTS

Commit 4e87a207b972 ("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: 4e87a207b972 ("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