net: dsa: microchip: Correct initialization order for KSZ88x3 ports
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 17 May 2024 05:01:21 +0000 (07:01 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 May 2024 19:25:22 +0000 (12:25 -0700)
commitf0fa84116434b50a8d249d0da8852f410a21ba98
tree37b21526e0bbd0262777c646f622cc42917d4c69
parent31279b0cb45f2f6be1f0e7324aeec26578a6e65e
net: dsa: microchip: Correct initialization order for KSZ88x3 ports

Adjust the initialization sequence of KSZ88x3 switches to enable
802.1p priority control on Port 2 before configuring Port 1. This
change ensures the apptrust functionality on Port 1 operates
correctly, as it depends on the priority settings of Port 2. The
prior initialization sequence incorrectly configured Port 1 first,
which could lead to functional discrepancies.

Fixes: a1ea57710c9d ("net: dsa: microchip: dcb: add special handling for KSZ88X3 family")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Hariprasad Kelam <hkelam@marvell.com>
Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Link: https://lore.kernel.org/r/20240517050121.2174412-1-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/microchip/ksz_dcb.c