]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit40f3a5c81555880a437dfd3301826074dff18138
tree320d17e4662dadc24f4163673b7db1d502340f95
parent65c53595bc2a14e77b455c8a12fc2631cbe43868
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