]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb13784dc16283d3e2b5df9cef74e2706bb24ac08
tree7e6c49c2ff22c02f09cbc717ed21e81d6e2d549a
parentb6c4612af70b3c4a30fcbc29341d363acc17bf47
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