mbox series

[net-next,0/5] net: dsa: microchip: ksz9477: enable interrupt for internal phy link detection

Message ID 20220913160427.12749-1-arun.ramadoss@microchip.com (mailing list archive)
Headers show
Series net: dsa: microchip: ksz9477: enable interrupt for internal phy link detection | expand

Message

Arun Ramadoss Sept. 13, 2022, 4:04 p.m. UTC
This patch series implements the common interrupt handling for ksz9477 based
switches and lan937x. The ksz9477 and lan937x has similar interrupt registers
except ksz9477 has 4 port based interrupts whereas lan937x has 6 interrupts.
The patch moves the phy interrupt hanler implemented in lan937x_main.c to
ksz_common.c, along with the mdio_register functionality.

Changes in RFC -> v1
- modified the return -ENODEV to 0 if mdio node not present

Arun Ramadoss (5):
  net: dsa: microchip: determine number of port irq based on switch type
  net: dsa: microchip: enable phy interrupts only if interrupt enabled
    in dts
  net: dsa: microchip: lan937x: return zero if mdio node not present
  net: dsa: microchip: move interrupt handling logic from lan937x to
    ksz_common
  net: phy: micrel: enable interrupt for ksz9477 phy

 drivers/net/dsa/microchip/ksz_common.c   | 435 +++++++++++++++++++++++
 drivers/net/dsa/microchip/ksz_common.h   |  10 +
 drivers/net/dsa/microchip/lan937x_main.c | 425 ----------------------
 drivers/net/phy/micrel.c                 |   2 +
 4 files changed, 447 insertions(+), 425 deletions(-)


base-commit: c9ae520ac3faf2f272b5705b085b3778c7997ec8