net: dsa: qca8k: convert to regmap read/write API
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 25 Jan 2023 20:35:17 +0000 (21:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2023 12:06:45 +0000 (12:06 +0000)
commitc766e077d927e1775902c18827205ea2ade3a35d
tree5970ff480168551b15e28e25d1467f0f47dde0f6
parente03cea60c3db8c6b011cc36ecef9281dff8377f3
net: dsa: qca8k: convert to regmap read/write API

Convert qca8k to regmap read/write bulk API. The mgmt eth can write up
to 32 bytes of data at times. Currently we use a custom function to do
it but regmap now supports declaration of read/write bulk even without a
bus.

Drop the custom function and rework the regmap function to this new
implementation.

Rework the qca8k_fdb_read/write function to use the new
regmap_bulk_read/write as the old qca8k_bulk_read/write are now dropped.

Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca/qca8k-8xxx.c
drivers/net/dsa/qca/qca8k-common.c
drivers/net/dsa/qca/qca8k.h