[PATCH net 0/2] net: dsa: microchip: Fix set_ageing_time function for KSZ9477 and LAN937X switches

From: Tristram.Ha
Date: Tue Dec 17 2024 - 21:03:34 EST


From: Tristram Ha <tristram.ha@xxxxxxxxxxxxx>

The aging count is not a simple number that is broken into two parts and
programmed into 2 registers. These patches correct the programming for
KSZ9477 and LAN937X switches.

Tristram Ha (2):
net: dsa: microchip: Fix KSZ9477 set_ageing_time function
net: dsa: microchip: Fix LAN937X set_ageing_time function

drivers/net/dsa/microchip/ksz9477.c | 47 +++++++++++++-----
drivers/net/dsa/microchip/ksz9477_reg.h | 4 +-
drivers/net/dsa/microchip/lan937x_main.c | 62 ++++++++++++++++++++++--
drivers/net/dsa/microchip/lan937x_reg.h | 9 ++--
4 files changed, 102 insertions(+), 20 deletions(-)

--
2.34.1