]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4952bb5f2717052829ecd3a215c9bf85965b0a62
tree12a2e6242586fa6841db3fe5e53e6f8cd58ff597
parentd076045b6d8ed041a2f8ad67bcdd292f09eea5f6
net: phy: micrel: fix shared interrupt on LAN8814

Since commit 8a86c40facf2 ("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: 8a86c40facf2 ("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