diff options
author | Tristram Ha <tristram.ha@microchip.com> | 2024-12-17 18:02:24 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-12-19 18:04:04 -0800 |
commit | bb9869043438af5b94230f94fb4c39206525d758 (patch) | |
tree | bbff88f765f7aecc5408f98fbcf5f954b5e23dba /drivers/net/dsa/bcm_sf2.h | |
parent | 262bfba8ab820641c8cfbbf03b86d6c00242c078 (diff) |
net: dsa: microchip: Fix LAN937X set_ageing_time function
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: 2c119d9982b1 ("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>
Diffstat (limited to 'drivers/net/dsa/bcm_sf2.h')
0 files changed, 0 insertions, 0 deletions