From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions
Date: Mon, 6 Aug 2018 15:11:08 +0200 [thread overview]
Message-ID: <20180806151108.74c065aa@crub> (raw)
In-Reply-To: <20180803080118.27748-7-mario.six@gdsys.cc>
On Fri, 3 Aug 2018 10:01:12 +0200
Mario Six mario.six at gdsys.cc wrote:
> The regmap functions currently assume that all register map accesses
> have a data width of 32 bits, but there are maps that have different
> widths.
>
> To rectify this, implement the regmap_raw_read and regmap_raw_write
> functions from the Linux kernel API that specify the width of a desired
> read or write operation on a regmap.
>
> Implement the regmap_read and regmap_write functions using these raw
> functions in a backwards-compatible manner.
>
> Reviewed-by: Anatolij Gustschin <agust@denx.de>
> Signed-off-by: Mario Six <mario.six@gdsys.cc>
>
> ---
>
> v3 -> v4:
> * Switched 'ranges[0] + offset' to 'ranges[0].start + offset'
> * Explained the difference between the raw and non-raw read/write
> functions better in the docs
>
> v2 -> v3:
> * Implement the "raw" functions from Linux instead of adding a size
> parameter to the regmap_{read,write} functions
> * Fixed style violation
> * Improved error handling
>
> v1 -> v2:
> New in v2
>
> ---
> drivers/core/regmap.c | 54 ++++++++++++++++++++++++++++++++++++++++++-------
> include/regmap.h | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 103 insertions(+), 7 deletions(-)
Applied to u-boot-staging/agust at denx.de, thanks!
--
Anatolij
next prev parent reply other threads:[~2018-08-06 13:11 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 8:01 [U-Boot] [PATCH v4 01/13] test: regmap: Increase size of syscon0 memory Mario Six
2018-08-03 8:01 ` [U-Boot] [PATCH v4 02/13] regmap: Fix documentation Mario Six
2018-08-06 13:01 ` Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 03/13] regmap: Add documentation Mario Six
2018-08-06 13:02 ` Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 04/13] regmap: Improve error handling Mario Six
2018-08-06 13:09 ` Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 05/13] regmap: Introduce init_range Mario Six
2018-08-06 13:10 ` Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 06/13] regmap: Add error output Mario Six
2018-08-06 13:10 ` Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 07/13] regmap: Add raw read/write functions Mario Six
2018-08-06 13:11 ` Anatolij Gustschin [this message]
2018-08-06 19:11 ` Anatolij Gustschin
2018-08-07 7:36 ` Mario Six
2018-08-07 7:45 ` Anatolij Gustschin
2018-08-07 14:31 ` Daniel Schwierzeck
2018-08-08 6:19 ` Mario Six
2018-08-03 8:01 ` [U-Boot] [PATCH v4 08/13] regmap: Support reading from specific range Mario Six
2018-08-06 13:16 ` Anatolij Gustschin
2018-08-06 13:16 ` Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 09/13] regmap: Define regmap_{get,set} Mario Six
2018-08-03 8:01 ` [U-Boot] [PATCH v4 10/13] test: regmap: Add test for regmap_{set, get} Mario Six
2018-08-06 13:26 ` Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 11/13] misc: Sort Makefile entries Mario Six
2018-08-06 14:18 ` [U-Boot] [PATCH v5 " Anatolij Gustschin
2018-08-06 14:42 ` Anatolij Gustschin
2018-08-06 14:20 ` [U-Boot] [PATCH v4 " Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 12/13] misc: Add gdsys_soc driver Mario Six
2018-08-06 16:13 ` Anatolij Gustschin
2018-08-03 8:01 ` [U-Boot] [PATCH v4 13/13] misc: Add IHS FPGA driver Mario Six
2018-08-06 16:16 ` Anatolij Gustschin
2018-08-06 13:01 ` [U-Boot] [PATCH v4 01/13] test: regmap: Increase size of syscon0 memory Anatolij Gustschin
2018-08-06 20:56 ` Anatolij Gustschin
2018-08-07 7:37 ` Mario Six
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180806151108.74c065aa@crub \
--to=agust@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.