]> git.hungrycats.org Git - linux/commit
net: phy: ti: take into account all possible interrupt sources
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 26 Feb 2021 15:30:20 +0000 (17:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Nov 2024 13:59:39 +0000 (14:59 +0100)
commit2f4bfcc4c5fa22d8b0a20262c63792d7180b8296
tree4194a9fc40fe42a9bed629560e58ea0026293aee
parent16a8ebc88fe20a776a298a13f6af0002eb286707
net: phy: ti: take into account all possible interrupt sources

commit 73f476aa1975bae6a792b340f5b26ffcfba869a6 upstream.

The previous implementation of .handle_interrupt() did not take into
account the fact that all the interrupt status registers should be
acknowledged since multiple interrupt sources could be asserted.

Fix this by reading all the status registers before exiting with
IRQ_NONE or triggering the PHY state machine.

Fixes: 1d1ae3c6ca3f ("net: phy: ti: implement generic .handle_interrupt() callback")
Reported-by: Sven Schuchmann <schuchmann@schleissheimer.de>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/20210226153020.867852-1-ciorneiioana@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/dp83822.c
drivers/net/phy/dp83tc811.c