netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/6] net: dsa: microchip: regmap range validation and ksz_pwrite status check for lan937x and irq and error checking updates for ksz series
@ 2022-11-02  4:10 Rakesh Sankaranarayanan
  2022-11-02  4:10 ` [PATCH net-next 1/6] net: dsa: microchip: lan937x: add regmap range validation Rakesh Sankaranarayanan
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Rakesh Sankaranarayanan @ 2022-11-02  4:10 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: woojung.huh, UNGLinuxDriver, andrew, vivien.didelot, f.fainelli,
	olteanv, davem, edumazet, kuba, pabeni

This patch series include following changes, 
- add regmap range validation support for lan937x series switches, 
which will help to avoid access to unused register addresses.
- 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.

Rakesh Sankaranarayanan (6):
  net: dsa: microchip: lan937x: add regmap range validation
  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   | 1794 +++++++++++++++++++++-
 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, 1816 insertions(+), 21 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-11-03  8:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-02  4:10 [PATCH net-next 0/6] net: dsa: microchip: regmap range validation and ksz_pwrite status check for lan937x and irq and error checking updates for ksz series Rakesh Sankaranarayanan
2022-11-02  4:10 ` [PATCH net-next 1/6] net: dsa: microchip: lan937x: add regmap range validation Rakesh Sankaranarayanan
2022-11-02 17:15   ` Florian Fainelli
2022-11-03  8:44     ` Rakesh.Sankaranarayanan
2022-11-02  4:10 ` [PATCH net-next 2/6] net: dsa: microchip: add ksz9563 in ksz_switch_ops and select based on compatible string Rakesh Sankaranarayanan
2022-11-02  4:10 ` [PATCH net-next 3/6] net: dsa: microchip: add irq in i2c probe Rakesh Sankaranarayanan
2022-11-02  4:10 ` [PATCH net-next 4/6] net: dsa: microchip: add error checking for ksz_pwrite Rakesh Sankaranarayanan
2022-11-02  4:10 ` [PATCH net-next 5/6] net: dsa: microchip: ksz8563: Add number of port irq Rakesh Sankaranarayanan
2022-11-02  4:10 ` [PATCH net-next 6/6] net: dsa: microchip: add dev_err_probe in probe functions Rakesh Sankaranarayanan
2022-11-03  3:50   ` Jakub Kicinski
2022-11-03  8:55     ` Rakesh.Sankaranarayanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).