Skip to content
Commit abbbbc83 authored by Will Deacon's avatar Will Deacon Committed by Catalin Marinas
Browse files

asm-generic/io: Pass result of I/O accessor to __io_[p]ar()



The inX() and readX() I/O accessors must enforce ordering against
subsequent calls to the delay() routines, so that a read-back from a
device can be used to postpone a subsequent write to the same device.

On some architectures, including arm64, this ordering can only be
achieved by creating a dependency on the value returned by the I/O
accessor operation, so we need to pass the value we read to the
__io_par() and __io_ar() macros in these cases.

Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Reported-by: default avatarAndrew Murray <andrew.murray@arm.com>
Reviewed-by: default avatarPalmer Dabbelt <palmer@sifive.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 3e32131a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment