net: phy: adin: implement generic .handle_interrupt() callback
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 13 Nov 2020 16:52:25 +0000 (18:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 19:37:05 +0000 (11:37 -0800)
commit66d7439e83607ff8e13a2a6d3337ba26b4fa2b08
tree91b41158ed16dfb82dc8ff2614ea7880be17deac
parente1bc534df8555c5e86b141ece9a2c900e9694882
net: phy: adin: implement generic .handle_interrupt() callback

In an attempt to actually support shared IRQs in phylib, we now move the
responsibility of triggering the phylib state machine or just returning
IRQ_NONE, based on the IRQ status register, to the PHY driver. Having
3 different IRQ handling callbacks (.handle_interrupt(),
.did_interrupt() and .ack_interrupt() ) is confusing so let the PHY
driver implement directly an IRQ handler like any other device driver.
Make this driver follow the new convention.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Acked-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/adin.c