lkml.org 
[lkml]   [2020]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 07/18] regmap: mmio: add config option to allow relaxed MMIO accesses
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-10-13 12:28    [W:0.240 / U:3.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site