mbox series

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

Message ID 20241218020224.70590-1-Tristram.Ha@microchip.com (mailing list archive)
Headers show
Series net: dsa: microchip: Fix set_ageing_time function for KSZ9477 and LAN937X switches | expand

Message

Tristram.Ha@microchip.com Dec. 18, 2024, 2:02 a.m. UTC
From: Tristram Ha <tristram.ha@microchip.com>

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(-)