OSDN Git Service

net: phy: smsc: implement generic .handle_interrupt() callback
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 13 Nov 2020 16:52:21 +0000 (18:52 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 19:37:00 +0000 (11:37 -0800)
commit36b25c26e2caab6c494215b9b5951b44a4f2f60c
tree311ec0ce28e7b3223e8c9694891517e13e0b811e
parent347917c7e06a6890781662db155e29b36d30a5a4
net: phy: smsc: 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: Andre Edich <andre.edich@microchip.com>
Cc: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/smsc.c