[PATCH 07/18] regmap: mmio: add config option to allow relaxed MMIO accesses
Mark Brown
broonie at kernel.org
Tue Oct 13 06:26:56 EDT 2020
On Mon, Oct 12, 2020 at 11:59:46PM +0300, Adrian Ratiu wrote:
> - writeb(val, ctx->regs + reg);
> + if (ctx->relaxed_mmio)
> + writeb_relaxed(val, ctx->regs + reg);
> + else
> + writeb(val, ctx->regs + reg);
There is no point in doing a conditional operation on every I/O, it'd be
better to register a different set of ops when doing relaxed I/O.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20201013/675a5b72/attachment.sig>
More information about the Linux-rockchip
mailing list