OSDN Git Service

net: dsa: qca8k: make mib autocast feature optional
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 27 Jul 2022 11:35:11 +0000 (13:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 05:24:37 +0000 (22:24 -0700)
commit533c64bca62a8654f00698bc893f639013e38c7b
tree7e6c49c2ff22c02f09cbc717ed21e81d6e2d549a
parent3bb0844e7bcd0fb0bcfab6202b5edd349ef5250a
net: dsa: qca8k: make mib autocast feature optional

Some switch may not support mib autocast feature and require the legacy
way of reading the regs directly.
Make the mib autocast feature optional and permit to declare support for
it using match_data struct in a dedicated qca8k_info_ops struct.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/qca/qca8k.c
drivers/net/dsa/qca/qca8k.h