linux/drivers/net/dsa/microchip
Tristram Ha ca2a2cad4e 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:31:58 +01:00
..
Kconfig net: dsa: microchip: ptp: fix up PTP dependency 2023-01-31 13:21:38 +01:00
ksz8.h net: dsa: microchip: Remove unused declarations 2023-08-22 10:28:13 -07:00
ksz8795.c net: dsa: microchip: fix register write order in ksz8_ind_write8() 2024-03-15 10:48:18 -04:00
ksz8795_reg.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8863_smi.c net: dsa: Explicitly include correct DT includes 2023-07-26 21:54:16 -07:00
ksz9477.c net: dsa: microchip: Fix KSZ9477 set_ageing_time function 2025-01-09 13:31:58 +01:00
ksz9477.h net: dsa: microchip: Remove unused declarations 2023-08-22 10:28:13 -07:00
ksz9477_i2c.c net: dsa: Switch i2c drivers back to use .probe() 2023-05-31 09:52:55 +01:00
ksz9477_reg.h net: dsa: microchip: Fix KSZ9477 set_ageing_time function 2025-01-09 13:31:58 +01:00
ksz_common.c net: dsa: microchip: KSZ9896 register regmap alignment to 32 bit boundaries 2024-12-19 18:11:34 +01:00
ksz_common.h net: dsa: microchip: correct KSZ8795 static MAC table access 2023-07-17 07:43:11 +01:00
ksz_ptp.c net: dsa: microchip: fix PTP config failure when using multiple ports 2024-08-29 17:33:53 +02:00
ksz_ptp.h net: dsa: microchip: ptp: add support for perout programmable pins 2023-01-13 08:40:41 +00: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 an enum for regmap widths 2023-05-30 09:48:17 +02:00
lan937x.h net: dsa: microchip: add support for credit based shaper 2023-01-23 22:12:35 -08:00
lan937x_main.c net: dsa: microchip: Fix LAN937X set_ageing_time function 2025-01-09 13:31:58 +01:00
lan937x_reg.h net: dsa: microchip: Fix LAN937X set_ageing_time function 2025-01-09 13:31:58 +01:00
Makefile net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00