mbox series

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

Message ID 20220922071028.18012-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. 22, 2022, 7:10 a.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.

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

Comments

patchwork-bot+netdevbpf@kernel.org Sept. 26, 2022, 7:50 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 22 Sep 2022 12:40:22 +0530 you wrote:
> 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
> 
> [...]

Here is the summary with links:
  - [net-next,v4,1/6] net: dsa: microchip: determine number of port irq based on switch type
    https://git.kernel.org/netdev/net-next/c/978f1f72460c
  - [net-next,v4,2/6] net: dsa: microchip: enable phy interrupts only if interrupt enabled in dts
    https://git.kernel.org/netdev/net-next/c/abc1cb8cbd73
  - [net-next,v4,3/6] net: dsa: microchip: lan937x: return zero if mdio node not present
    https://git.kernel.org/netdev/net-next/c/68ccceaef0b4
  - [net-next,v4,4/6] net: dsa: microchip: move interrupt handling logic from lan937x to ksz_common
    https://git.kernel.org/netdev/net-next/c/ff319a644829
  - [net-next,v4,5/6] net: dsa: microchip: use common irq routines for girq and pirq
    https://git.kernel.org/netdev/net-next/c/e1add7dd6183
  - [net-next,v4,6/6] net: phy: micrel: enable interrupt for ksz9477 phy
    https://git.kernel.org/netdev/net-next/c/db45c76bada3

You are awesome, thank you!