]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: remove the .did_interrupt() and .ack_interrupt() callback
authorIoana Ciornei <ioana.ciornei@nxp.com>
Mon, 23 Nov 2020 15:38:17 +0000 (17:38 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 25 Nov 2020 19:18:38 +0000 (11:18 -0800)
commit6abc52dc51483bde8f653957710a54c7d3058a61
treec273ad1ea912f8519463a34f956aa90ba49b5b3a
parent6359c0729075434a9705a0737e30594e7bd664d9
net: phy: remove the .did_interrupt() and .ack_interrupt() callback

Now that all the PHY drivers have been migrated to directly implement
the generic .handle_interrupt() callback for a seamless support of
shared IRQs and all the .config_inter() implementations clear any
pending interrupts, we can safely remove the two callbacks.

With this patch, phylib has a proper support for shared IRQs (and not
just for multi-PHY devices. A PHY driver must implement both the
.handle_interrupt() and .config_intr() callbacks for the IRQs to be
actually used.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c
include/linux/phy.h