[net-next,v2,0/5] net: dsa: microchip: ksz_pwrite status check for lan937x and irq and error checking updates for ksz series

Message ID 20221107092922.5926-1-rakesh.sankaranarayanan@microchip.com
Headers
Series net: dsa: microchip: ksz_pwrite status check for lan937x and irq and error checking updates for ksz series |

Message

Rakesh Sankaranarayanan Nov. 7, 2022, 9:29 a.m. UTC
  This patch series include following changes, 
- Add KSZ9563 inside ksz_switch_chips. As per current structure,
KSZ9893 is reused inside ksz_switch_chips structure, but since
there is a mismatch in number of irq's, new member added for KSZ9563
and sku detected based on Global Chip ID 4 Register. Compatible
string from device tree mapped to KSZ9563 for spi and i2c mode
probes.
- Assign device interrupt during i2c probe operation.
- Add error checking for ksz_pwrite inside lan937x_change_mtu. After v6.0,
ksz_pwrite updated to have return type int instead of void, and
lan937x_change_mtu still uses ksz_pwrite without status verification.
- Add port_nirq as 3 for KSZ8563 switch family.
- Use dev_err_probe() instead of dev_err() to have more standardized error
formatting and logging.

v1 -> v2:
- Removed regmap validation patch from the series, planning to take
  up in future after checking for any better approach and studying
  the actual need for this change.
- Resolved error reported in ksz8863_smi.c file.

Rakesh Sankaranarayanan (5):
  net: dsa: microchip: add ksz9563 in ksz_switch_ops and select based on
    compatible string
  net: dsa: microchip: add irq in i2c probe
  net: dsa: microchip: add error checking for ksz_pwrite
  net: dsa: microchip: ksz8563: Add number of port irq
  net: dsa: microchip: add dev_err_probe in probe functions

 drivers/net/dsa/microchip/ksz8863_smi.c  |  9 +++----
 drivers/net/dsa/microchip/ksz9477.c      |  3 ++-
 drivers/net/dsa/microchip/ksz9477_i2c.c  | 12 ++++-----
 drivers/net/dsa/microchip/ksz_common.c   | 34 ++++++++++++++++++++++--
 drivers/net/dsa/microchip/ksz_common.h   |  3 +++
 drivers/net/dsa/microchip/ksz_spi.c      | 10 +++----
 drivers/net/dsa/microchip/lan937x_main.c |  6 ++++-
 7 files changed, 56 insertions(+), 21 deletions(-)
  

Comments

patchwork-bot+netdevbpf@kernel.org Nov. 9, 2022, 1:10 p.m. UTC | #1
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Mon, 7 Nov 2022 14:59:17 +0530 you wrote:
> This patch series include following changes,
> - Add KSZ9563 inside ksz_switch_chips. As per current structure,
> KSZ9893 is reused inside ksz_switch_chips structure, but since
> there is a mismatch in number of irq's, new member added for KSZ9563
> and sku detected based on Global Chip ID 4 Register. Compatible
> string from device tree mapped to KSZ9563 for spi and i2c mode
> probes.
> - Assign device interrupt during i2c probe operation.
> - Add error checking for ksz_pwrite inside lan937x_change_mtu. After v6.0,
> ksz_pwrite updated to have return type int instead of void, and
> lan937x_change_mtu still uses ksz_pwrite without status verification.
> - Add port_nirq as 3 for KSZ8563 switch family.
> - Use dev_err_probe() instead of dev_err() to have more standardized error
> formatting and logging.
> 
> [...]

Here is the summary with links:
  - [net-next,v2,1/5] net: dsa: microchip: add ksz9563 in ksz_switch_ops and select based on compatible string
    https://git.kernel.org/netdev/net-next/c/ef912fe443ad
  - [net-next,v2,2/5] net: dsa: microchip: add irq in i2c probe
    https://git.kernel.org/netdev/net-next/c/a9c6db3bc9d8
  - [net-next,v2,3/5] net: dsa: microchip: add error checking for ksz_pwrite
    https://git.kernel.org/netdev/net-next/c/e06999c3dc62
  - [net-next,v2,4/5] net: dsa: microchip: ksz8563: Add number of port irq
    https://git.kernel.org/netdev/net-next/c/4630d1420f84
  - [net-next,v2,5/5] net: dsa: microchip: add dev_err_probe in probe functions
    https://git.kernel.org/netdev/net-next/c/9b1833170632

You are awesome, thank you!