OpenCloudOS-Kernel/drivers/net/dsa/microchip
Tristram Ha 4bdf79d686 net: dsa: microchip: correct KSZ8795 static MAC table access
The KSZ8795 driver code was modified to use on KSZ8863/73, which has
different register definitions.  Some of the new KSZ8795 register
information are wrong compared to previous code.

KSZ8795 also behaves differently in that the STATIC_MAC_TABLE_USE_FID
and STATIC_MAC_TABLE_FID bits are off by 1 when doing MAC table reading
than writing.  To compensate that a special code was added to shift the
register value by 1 before applying those bits.  This is wrong when the
code is running on KSZ8863, so this special code is only executed when
KSZ8795 is detected.

Fixes: 4b20a07e10 ("net: dsa: microchip: ksz8795: add support for ksz88xx chips")
Signed-off-by: Tristram Ha <Tristram.Ha@microchip.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-07-17 07:43:11 +01:00
..
Kconfig net: dsa: microchip: ptp: fix up PTP dependency 2023-01-31 13:21:38 +01:00
Makefile net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00
ksz8.h net: dsa: microchip: Make ksz8_w_sta_mac_table() static 2023-04-06 11:34:45 +02:00
ksz8795.c net: dsa: microchip: correct KSZ8795 static MAC table access 2023-07-17 07:43:11 +01:00
ksz8795_reg.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8863_smi.c net: dsa: microchip: ksz8: Prepare ksz8863_smi for regmap register access validation 2023-05-30 09:48:17 +02:00
ksz9477.c net: dsa: microchip: fix writes to phy registers >= 0x10 2023-06-22 19:48:37 -07:00
ksz9477.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
ksz9477_i2c.c net: dsa: Switch i2c drivers back to use .probe() 2023-05-31 09:52:55 +01:00
ksz9477_reg.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
ksz_common.c net: dsa: microchip: correct KSZ8795 static MAC table access 2023-07-17 07:43:11 +01:00
ksz_common.h net: dsa: microchip: correct KSZ8795 static MAC table access 2023-07-17 07:43:11 +01:00
ksz_ptp.c net: dsa: microchip: ptp: Fix error code in ksz_hwtstamp_set() 2023-01-19 18:57:16 -08:00
ksz_ptp.h net: dsa: microchip: ptp: add support for perout programmable pins 2023-01-13 08:40:41 +00:00
ksz_ptp_reg.h net: dsa: microchip: ptp: lan937x: Enable periodic output in LED pins 2023-01-13 08:40:41 +00:00
ksz_spi.c net: dsa: microchip: add an enum for regmap widths 2023-05-30 09:48:17 +02:00
lan937x.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
lan937x_main.c net: dsa: microchip: add an enum for regmap widths 2023-05-30 09:48:17 +02:00
lan937x_reg.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00