]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: phy: microchip: remove the use of .ack_interrupt()
authorIoana Ciornei <ioana.ciornei@nxp.com>
Sat, 6 Sep 2025 13:12:35 +0000 (09:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:45:24 +0000 (18:45 +0200)
commit308bccbbd23a3f9dd985d213071708e6ac3172bd
treeb9044d51962afc1098ceacdf0cf2d9cf5d22837f
parentbb2c31b8a8f0d9879600df39ca86ae81312d7078
net: phy: microchip: remove the use of .ack_interrupt()

[ Upstream commit cf499391982d877e9313d2adeedcf5f1ffe05d6e ]

In preparation of removing the .ack_interrupt() callback, we must replace
its occurrences (aka phy_clear_interrupt), from the 2 places where it is
called from (phy_enable_interrupts and phy_disable_interrupts), with
equivalent functionality.

This means that clearing interrupts now becomes something that the PHY
driver is responsible of doing, before enabling interrupts and after
clearing them. Make this driver follow the new contract.

Cc: Nisar Sayed <Nisar.Sayed@microchip.com>
Cc: Yuiko Oshino <yuiko.oshino@microchip.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 30a41ed32d30 ("net: phy: microchip: force IRQ polling mode for lan88xx")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/microchip.c
drivers/net/phy/microchip_t1.c