riscv: io: Update __io_[p]ar() macros to take an argument
authorWill Deacon <will.deacon@arm.com>
Fri, 22 Feb 2019 18:04:53 +0000 (18:04 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 28 Feb 2019 17:23:12 +0000 (17:23 +0000)
commitce246c444a08e03bc95c9b1aa111527690d1ae13
tree43ea78522c53ba2d415322efc96c2e43c9681e95
parentabbbbc83a210e95e2ae4ee71e50930a8cec6f081
riscv: io: Update __io_[p]ar() macros to take an argument

The definitions of the __io_[p]ar() macros in asm-generic/io.h take the
value returned by the preceding I/O read as an argument so that
architectures can use this to create order with a subsequent delayX()
routine using a dependency.

Update the riscv barrier definitions to match, although the argument
is currently unused.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/riscv/include/asm/io.h