Skip to content

net: dsa: microchip: ksz9477: enable interrupt for internal phy link detection

Arun Ramadoss lkml netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 3 repliesApplied 6/6
  2. v36 patches 1 replySuperseded
  3. v25 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches2 repliesSuperseded

Changes in v4 from the cover letter

- Rebased the code to latest net-next

Patches in v4 All 6 applied

#Subject and filesSizeRepliesApplied
1/6net: dsa: microchip: determine number of port irq based on switch typedrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/lan937x_main.c+12 -30 repliesApplied
2/6net: dsa: microchip: enable phy interrupts only if interrupt enabled in dtsdrivers/net/dsa/microchip/lan937x_main.c+8 -50 repliesApplied
3/6net: dsa: microchip: lan937x: return zero if mdio node not presentdrivers/net/dsa/microchip/lan937x_main.c+2 -41 replyApplied
4/6net: dsa: microchip: move interrupt handling logic from lan937x to ksz_commondrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h drivers/net/dsa/microchip/lan937x_main.c+433 -4262 repliesApplied
5/6net: dsa: microchip: use common irq routines for girq and pirqdrivers/net/dsa/microchip/ksz_common.c drivers/net/dsa/microchip/ksz_common.h+81 -1920 repliesApplied
6/6net: phy: micrel: enable interrupt for ksz9477 phydrivers/net/phy/micrel.c+2 -00 repliesApplied

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/6R-b
2/6R-b
3/6R-b
4/6R-b R-b
5/6
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [Patch net-next v4 0/6] net: dsa: microchip: ksz9477: enable interrupt for internal phy link detection

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.

v3 -> v4
- Rebased the code to latest net-next

v2 -> v3
- Added the common interrupt routines for girq and pirq

v1 -> v2
- Added the .port_nirqs = 2 for ksz9896

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

Arun Ramadoss (6):
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: dsa: microchip: use common irq routines for girq and pirq
net: phy: micrel: enable interrupt for ksz9477 phy

 drivers/net/dsa/microchip/ksz_common.c   | 320 +++++++++++++++++
 drivers/net/dsa/microchip/ksz_common.h   |  15 +-
 drivers/net/dsa/microchip/lan937x_main.c | 427 -----------------------
 drivers/net/phy/micrel.c                 |   2 +
 4 files changed, 336 insertions(+), 428 deletions(-)

base-commit: 7a5d48c4463e6ef896ea2190a97d9e90b37c38da

Signature · 1 line
2.36.1