linux_dsm_epyc7002/drivers/net/dsa/microchip
Marek Vasut a3aa6e65be net: dsa: microchip: Always set regmap stride to 1
The regmap stride is set to 1 for regmap describing 8bit registers already.
However, for 16/32/64bit registers, the stride is 2/4/8 respectively. This
is not correct, as the switch protocol supports unaligned register reads
and writes and the KSZ87xx even uses such unaligned register accesses to
read e.g. MIB counter.

This patch fixes MIB counter access on KSZ87xx.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: David S. Miller <davem@davemloft.net>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: George McCollister <george.mccollister@gmail.com>
Cc: Tristram Ha <Tristram.Ha@microchip.com>
Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: Woojung Huh <woojung.huh@microchip.com>
Fixes: 46558d601c ("net: dsa: microchip: Initial SPI regmap support")
Fixes: 255b59ad0d ("net: dsa: microchip: Factor out regmap config generation into common header")
Reviewed-by: George McCollister <george.mccollister@gmail.com>
Tested-by: George McCollister <george.mccollister@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-09-27 20:21:07 +02:00
..
Kconfig net: dsa: microchip: add KSZ9477 I2C driver 2019-09-12 11:36:12 +01:00
ksz8795_reg.h net: dsa: ksz: Add Microchip KSZ8795 DSA driver 2019-07-30 15:12:50 -07:00
ksz8795_spi.c net: dsa: ksz: Merge ksz_priv.h into ksz_common.h 2019-08-06 11:59:17 -07:00
ksz8795.c net: dsa: ksz: Merge ksz_priv.h into ksz_common.h 2019-08-06 11:59:17 -07:00
ksz9477_i2c.c net: dsa: microchip: add ksz9567 to ksz9477 driver 2019-09-12 11:36:12 +01:00
ksz9477_reg.h net: dsa: microchip: rename ksz_9477_reg.h to ksz9477_reg.h 2018-11-20 20:57:12 -08:00
ksz9477_spi.c net: dsa: microchip: add ksz9567 to ksz9477 driver 2019-09-12 11:36:12 +01:00
ksz9477.c net: dsa: microchip: add ksz9567 to ksz9477 driver 2019-09-12 11:36:12 +01:00
ksz_common.c net: dsa: do not enable or disable non user ports 2019-08-20 12:33:49 -07:00
ksz_common.h net: dsa: microchip: Always set regmap stride to 1 2019-09-27 20:21:07 +02:00
Makefile net: dsa: microchip: add KSZ9477 I2C driver 2019-09-12 11:36:12 +01:00