]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARC: IO: add volatile to accessors
authorEugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Mon, 30 Mar 2020 19:44:43 +0000 (22:44 +0300)
committerAlexey Brodkin <abrodkin@synopsys.com>
Tue, 31 Mar 2020 15:25:16 +0000 (18:25 +0300)
commit7e5702282374138507ab3c08dfc1b28dd9ec2bd7
treed9ff13574d147cf24f029bdff6bf01cad04fbec7
parent93330d4ce416208fe202e304e5a18166c57ac569
ARC: IO: add volatile to accessors

We must use 'volatile' in C-version read/write IO accessors
implementation to avoid merging several reads (writes) into
one read (write), or optimizing them out by compiler.

Fixes commit 07906b3dad15 ("ARC: Switch to generic accessors")

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
arch/arc/include/asm/io.h