]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: at803x: implement generic .handle_interrupt() callback
authorIoana Ciornei <ioana.ciornei@nxp.com>
Sun, 1 Nov 2020 12:50:59 +0000 (14:50 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Nov 2020 00:31:59 +0000 (16:31 -0800)
commit1f5334cff1af8b548cc0632078784b0f78d5c6b5
treeedc50de1d90bacdcb1c475af8132af4aca2e788e
parent861873f287b4d2d4c09f8da5016ce46ff5064c4a
net: phy: at803x: 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.

Cc: Oleksij Rempel <o.rempel@pengutronix.de>
Cc: Michael Walle <michael@walle.cc>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/at803x.c