Messages in this thread | | | Date | Thu, 25 Sep 2014 12:44:17 +0100 | From | Will Deacon <> | Subject | Re: [PATCH v3 01/17] asm-generic: io: implement relaxed accessor macros as conditional wrappers |
| |
On Thu, Sep 25, 2014 at 11:43:41AM +0100, Arnd Bergmann wrote: > On Thursday 25 September 2014 11:38:46 Will Deacon wrote: > > On Thu, Sep 25, 2014 at 11:32:00AM +0100, Arnd Bergmann wrote: > > > On Wednesday 24 September 2014 18:17:20 Will Deacon wrote: > > > > {read,write}{b,w,l,q}_relaxed are implemented by some architectures in > > > > order to permit memory-mapped I/O accesses with weaker barrier semantics > > > > than the non-relaxed variants. > > > > > > > > This patch adds wrappers to asm-generic so that drivers can rely on the > > > > relaxed accessors being available, even if they don't always provide > > > > weaker ordering guarantees. Since some architectures both include > > > > asm-generic/io.h and define some relaxed accessors, the definitions here > > > > are conditional for the time being. > > > > > > > > Cc: Arnd Bergmann <arnd@arndb.de> > > > > Signed-off-by: Will Deacon <will.deacon@arm.com> > > > > --- > > > > include/asm-generic/io.h | 26 ++++++++++++++++++++++++++ > > > > 1 file changed, 26 insertions(+) > > > > > > > > > > Acked-by: Arnd Bergmann <arnd@arndb.de> > > > > Thanks, Arnd. Do you have other patches queued for asm-generic, or shall I > > take this patch (on its own) via the arm64 tree? > > I don't have other patches queued up yet, but Thierry has another patch > for asm-generic/io.h that I want to merge, so this time I'd prefer to > take it through my tree in case there are conflicts.
Ok, suits me. I'll drop this from my series when it hits mainline.
Will
| |