]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: add the support for set_ageing_time
authorArun Ramadoss <arun.ramadoss@microchip.com>
Wed, 7 Sep 2022 07:20:39 +0000 (12:50 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2022 20:51:47 +0000 (21:51 +0100)
commit1cfc63bcae8d97017e7d7bda0089930b681f131b
tree37cc4140b6aa110cf4cb76c62c381af20101b65f
parent945d8df1dc6f7919e1b62e8137b3e78b65917065
net: dsa: microchip: add the support for set_ageing_time

KSZ9477 has the 11 bit ageing count value which is split across the two
registers. And LAN937x has the 20 bit ageing count which is also split
into two registers. Each count in the registers represents 1 second.
This patch add the support for ageing time for KSZ9477 and LAN937x
series of switch.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz9477.h
drivers/net/dsa/microchip/ksz9477_reg.h
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h
drivers/net/dsa/microchip/lan937x.h
drivers/net/dsa/microchip/lan937x_main.c
drivers/net/dsa/microchip/lan937x_reg.h