net: phy: improve phy_driver callback handle_interrupt
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: phy: improve phy_driver callback handle_interruptdrivers/ drivers/ include/ | +23 | 0 replies | |
| 2/2 | net: phy: mscc: consider interrupt source in interrupt handlerdrivers/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next 0/2] net: phy: improve phy_driver callback handle_interrupt
did_interrupt() clears the interrupt, therefore handle_interrupt() can not check which event triggered the interrupt. To overcome this constraint and allow more flexibility for customer interrupt handlers, let's decouple handle_interrupt() from parts of the phylib interrupt handling. Custom interrupt handlers now have to implement the did_interrupt() functionality in handle_interrupt() if needed.
Fortunately we have just one custom interrupt handler so far (in the mscc PHY driver), convert it to the changed API and make use of the benefits.
Heiner Kallweit (2):
net: phy: improve phy_driver callback handle_interrupt
net: phy: mscc: consider interrupt source in interrupt handler
drivers/net/phy/mscc/mscc_main.c | 18 ++++++++++++++---- drivers/net/phy/phy.c | 26 ++++++++++++-------------- include/linux/phy.h | 3 ++- 3 files changed, 28 insertions(+), 19 deletions(-)
Signature · 1 line
2.25.1