]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Tell caller result of phy_change()
authorBrad Mouring <brad.mouring@ni.com>
Thu, 8 Mar 2018 22:23:03 +0000 (16:23 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 14:33:07 +0000 (10:33 -0400)
commit633be8cc62b5ad72560d2296737d296f22502a0d
tree14ae44931e189f9d54045bb1f4b8c8a1ddf72071
parentce3b68ee08e71a8b858c6e517044026ea2346673
net: phy: Tell caller result of phy_change()

In 5333bdf924834 (net: phy: Threaded interrupts allow some simplification)
the phy_interrupt system was changed to use a traditional threaded
interrupt scheme instead of a workqueue approach.

With this change, the phy status check moved into phy_change, which
did not report back to the caller whether or not the interrupt was
handled. This means that, in the case of a shared phy interrupt,
only the first phydev's interrupt registers are checked (since
phy_interrupt() would always return IRQ_HANDLED). This leads to
interrupt storms when it is a secondary device that's actually the
interrupt source.

Signed-off-by: Brad Mouring <brad.mouring@ni.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
include/linux/phy.h