]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: add ability to perform bulk reads
authorColin Foster <colin.foster@in-advantage.com>
Sun, 13 Feb 2022 19:12:53 +0000 (11:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2022 13:24:29 +0000 (13:24 +0000)
commit594424685daa32c3ee7284c9f7e6015f9a1dba63
tree320d17e4662dadc24f4163673b7db1d502340f95
parent7e3807c857c8a128fb258bfb4a13c5c53513a897
net: mscc: ocelot: add ability to perform bulk reads

Regmap supports bulk register reads. Ocelot does not. This patch adds
support for Ocelot to invoke bulk regmap reads. That will allow any driver
that performs consecutive reads over memory regions to optimize that
access.

Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_io.c
include/soc/mscc/ocelot.h