summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/microchip/lan937x_main.c
diff options
context:
space:
mode:
authorTristram Ha <tristram.ha@microchip.com>2024-12-17 18:02:23 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-09 13:33:36 +0100
commitb3989de2004171cb1512a4ef214441307957d46c (patch)
tree4b72f5968b1f7e8f5233f169102d70c965941b42 /drivers/net/dsa/microchip/lan937x_main.c
parent929e70e8dbee29cd91e093c50322b3dcbb16e460 (diff)
net: dsa: microchip: Fix KSZ9477 set_ageing_time function
[ Upstream commit 262bfba8ab820641c8cfbbf03b86d6c00242c078 ] The aging count is not a simple 11-bit value but comprises a 3-bit multiplier and an 8-bit second count. The code tries to use the original multiplier which is 4 as the second count is still 300 seconds by default. 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-2-Tristram.Ha@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/dsa/microchip/lan937x_main.c')
0 files changed, 0 insertions, 0 deletions