net: phy: micrel: fix shared interrupt on LAN8814
authorMichael Walle <michael@walle.cc>
Tue, 20 Sep 2022 14:16:19 +0000 (16:16 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 22 Sep 2022 13:36:32 +0000 (06:36 -0700)
commit2002fbac743b6e2391b4ed50ad9eb626768dd78a
tree12a2e6242586fa6841db3fe5e53e6f8cd58ff597
parente738455b2c6dcdab03e45d97de36476f93f557d2
net: phy: micrel: fix shared interrupt on LAN8814

Since commit ece19502834d ("net: phy: micrel: 1588 support for LAN8814
phy") the handler always returns IRQ_HANDLED, except in an error case.
Before that commit, the interrupt status register was checked and if
it was empty, IRQ_NONE was returned. Restore that behavior to play nice
with the interrupt line being shared with others.

Fixes: ece19502834d ("net: phy: micrel: 1588 support for LAN8814 phy")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Divya Koppera <Divya.Koppera@microchip.com>
Link: https://lore.kernel.org/r/20220920141619.808117-1-michael@walle.cc
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c