Re: [RFC PATCH 0/3] regmap: Implement regmap_multi_reg_read()
From: Mark Brown
Date: Wed Jul 10 2024 - 21:17:20 EST
On Tue, Jul 09, 2024 at 06:56:19PM -0700, Guenter Roeck wrote:
> regmap_multi_reg_read() is similar to regmap_bilk_read() but reads from
> an array of non-sequential registers. It is helpful if multiple non-
> sequential registers need to be read in a single operation which would
> otherwise have to be mutex protected.
It would be nice to have KUnit coverage for the new function too.
The following changes since commit f2661062f16b2de5d7b6a5c42a9a5c96326b8454:
Linux 6.10-rc5 (2024-06-23 17:08:54 -0400)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git tags/regmap-multi-reg-write
for you to fetch changes up to 3c1ff93b4deea502cd8b0869839557cab2a28b71:
regmap: Implement regmap_multi_reg_read() (2024-07-10 18:45:34 +0100)
----------------------------------------------------------------
regmap: Implement regmap_multi_reg_read()
A new API function from Guenter Roeck:
regmap_multi_reg_read() is similar to regmap_bulk_read() but reads from
an array of non-sequential registers. It is helpful if multiple non-
sequential registers need to be read in a single operation which would
otherwise have to be mutex protected.
The name of the new function was chosen to match the existing function
regmap_multi_reg_write().
----------------------------------------------------------------
Guenter Roeck (1):
regmap: Implement regmap_multi_reg_read()
drivers/base/regmap/regmap.c | 103 ++++++++++++++++++++++++++++---------------
include/linux/regmap.h | 2 +
2 files changed, 70 insertions(+), 35 deletions(-)
Attachment:
signature.asc
Description: PGP signature