]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: dsa: qca8k: add set_ageing_time support
authorAnsuel Smith <ansuelsmth@gmail.com>
Mon, 22 Nov 2021 15:23:47 +0000 (16:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Nov 2021 15:35:16 +0000 (15:35 +0000)
commit6a3bdc5209f45d2af83aa92433ab6e5cf2297aa4
tree5190c96d80b2f6049000abe96bdbe52a7164464b
parent4592538bfb0d5d3c3c8a1d7071724d081412ac91
net: dsa: qca8k: add set_ageing_time support

qca8k support setting ageing time in step of 7s. Add support for it and
set the max value accepted of 7645m.
Documentation talks about support for 10000m but that values doesn't
make sense as the value doesn't match the max value in the reg.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h