linux/drivers/net/dsa/microchip
Oleksij Rempel 1ae1d705a1 net: dsa: microchip: fix DCB apptrust configuration on KSZ88x3
Remove KSZ88x3-specific priority and apptrust configuration logic that was
based on incorrect register access assumptions. Also fix the register
offset for KSZ8_REG_PORT_1_CTRL_0 to align with get_port_addr() logic.

The KSZ88x3 switch family uses a different register layout compared to
KSZ9477-compatible variants. Specifically, port control registers need
offset adjustment through get_port_addr(), and do not match the datasheet
values directly.

Commit a1ea57710c ("net: dsa: microchip: dcb: add special handling for
KSZ88X3 family") introduced quirks based on datasheet offsets, which do
not work with the driver's internal addressing model. As a result, these
quirks addressed the wrong ports and caused unstable behavior.

This patch removes all KSZ88x3-specific DCB quirks and corrects the port
control register offset, effectively restoring working and predictable
apptrust configuration.

Fixes: a1ea57710c ("net: dsa: microchip: dcb: add special handling for KSZ88X3 family")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250321141044.2128973-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-03-25 10:40:54 -07:00
..
Kconfig net: dsa: microchip: rename ksz8 series files 2024-09-06 08:41:35 +01:00
Makefile net: dsa: microchip: rename ksz8 series files 2024-09-06 08:41:35 +01:00
ksz8.c net: dsa: microchip: fix DCB apptrust configuration on KSZ88x3 2025-03-25 10:40:54 -07:00
ksz8.h net: dsa: microchip: add WoL support for KSZ87xx family 2024-08-16 10:25:02 -07:00
ksz8_reg.h net: dsa: microchip: clean up ksz8_reg definition macros 2024-09-06 08:41:35 +01:00
ksz8863_smi.c net: dsa: microchip: replace unclear KSZ8830 strings 2024-09-06 08:41:35 +01:00
ksz9477.c net: dsa: microchip: Fix KSZ9477 set_ageing_time function 2024-12-19 18:04:04 -08:00
ksz9477.h net: dsa: microchip: move KSZ9477 WoL functions to ksz_common 2024-08-16 10:25:02 -07:00
ksz9477_acl.c net: dsa: microchip: Fix uninitialized var in ksz9477_acl_move_entries() 2023-10-10 11:12:01 +02:00
ksz9477_i2c.c net: dsa: microchip: Add suspend/resume support to KSZ DSA driver 2024-12-19 18:05:57 -08:00
ksz9477_reg.h net: dsa: microchip: Fix KSZ9477 set_ageing_time function 2024-12-19 18:04:04 -08:00
ksz9477_tc_flower.c net: dsa: microchip: ksz9477: flower: validate control flags 2024-04-15 10:33:14 +01:00
ksz_common.c net: dsa: ksz: remove ksz_get_mac_eee() 2025-01-07 18:06:17 -08:00
ksz_common.h net: dsa: microchip: Do not execute PTP driver code for unsupported switches 2024-12-20 13:28:42 -08:00
ksz_dcb.c net: dsa: microchip: fix DCB apptrust configuration on KSZ88x3 2025-03-25 10:40:54 -07:00
ksz_dcb.h net: dsa: microchip: add support DSCP priority mapping 2024-05-08 10:35:11 +01:00
ksz_ptp.c net: dsa: microchip: copy string using strscpy 2024-10-15 10:55:09 -07:00
ksz_ptp.h net: Add struct kernel_ethtool_ts_info 2024-07-15 08:02:26 -07: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 suspend/resume support to KSZ DSA driver 2024-12-19 18:05:57 -08:00
lan937x.h net: dsa: microchip: add support for side MDIO interface in LAN937x 2024-11-11 16:04:32 -08:00
lan937x_main.c net: dsa: microchip: Fix LAN937X set_ageing_time function 2024-12-19 18:04:04 -08:00
lan937x_reg.h net: dsa: microchip: Fix LAN937X set_ageing_time function 2024-12-19 18:04:04 -08:00