linux/drivers/net/dsa/microchip
Tristram Ha ba4014276b net: dsa: microchip: Fix LAN937X set_ageing_time function
[ Upstream commit bb98690434 ]

The aging count is not a simple 20-bit value but comprises a 3-bit
multiplier and a 20-bit second time.  The code tries to use the
original multiplier which is 4 as the second count is still 300 seconds
by default.

As the 20-bit number is now too large for practical use there is an option
to interpret it as microseconds instead of seconds.

Fixes: 2c119d9982 ("net: dsa: microchip: add the support for set_ageing_time")
Signed-off-by: Tristram Ha <tristram.ha@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241218020224.70590-3-Tristram.Ha@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-01-09 13:29:58 +01:00
..
Kconfig net: dsa: microchip: add DSA support for microchip LAN937x 2022-07-02 16:34:05 +01:00
ksz8.h net: dsa: microchip: ksz8: Make ksz8_r_sta_mac_table() static 2023-07-27 08:50:41 +02:00
ksz8795.c net: dsa: microchip: fix register write order in ksz8_ind_write8() 2024-03-15 10:48:15 -04:00
ksz8795_reg.h net: dsa: microchip: ksz8795: use common xmii function 2022-07-27 09:39:17 +01:00
ksz8863_smi.c net: dsa: microchip: ksz8863_smi: fix bulk access 2023-04-06 12:10:45 +02:00
ksz9477.c net: dsa: microchip: Fix KSZ9477 set_ageing_time function 2025-01-09 13:29:58 +01:00
ksz9477.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
ksz9477_i2c.c net: dsa: microchip: fix probe of I2C-connected KSZ8563 2023-02-01 08:34:45 +01:00
ksz9477_reg.h net: dsa: microchip: Fix KSZ9477 set_ageing_time function 2025-01-09 13:29:58 +01:00
ksz_common.c net: dsa: microchip: fix wrong register write when masking interrupt 2024-07-05 09:31:46 +02:00
ksz_common.h net: dsa: microchip: add ksz_rmw8() function 2025-01-09 13:29:58 +01:00
ksz_spi.c net: dsa: microchip: remove unnecessary set_drvdata() 2022-09-22 19:30:36 -07:00
lan937x.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
lan937x_main.c net: dsa: microchip: Fix LAN937X set_ageing_time function 2025-01-09 13:29:58 +01:00
lan937x_reg.h net: dsa: microchip: Fix LAN937X set_ageing_time function 2025-01-09 13:29:58 +01:00
Makefile net: dsa: microchip: add DSA support for microchip LAN937x 2022-07-02 16:34:05 +01:00