net: phy: ti: 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: Dan Murphy <dmurphy@ti.com> Signed-off-by:Ioana Ciornei <ioana.ciornei@nxp.com> Signed-off-by:
Jakub Kicinski <kuba@kernel.org>
Showing
- drivers/net/phy/dp83640.c 27 additions, 0 deletionsdrivers/net/phy/dp83640.c
- drivers/net/phy/dp83822.c 37 additions, 0 deletionsdrivers/net/phy/dp83822.c
- drivers/net/phy/dp83848.c 33 additions, 0 deletionsdrivers/net/phy/dp83848.c
- drivers/net/phy/dp83867.c 25 additions, 0 deletionsdrivers/net/phy/dp83867.c
- drivers/net/phy/dp83869.c 25 additions, 0 deletionsdrivers/net/phy/dp83869.c
- drivers/net/phy/dp83tc811.c 44 additions, 0 deletionsdrivers/net/phy/dp83tc811.c
Loading
Please register or sign in to comment