summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@sifive.com>2017-12-01 13:14:36 -0800
committerPalmer Dabbelt <palmer@sifive.com>2017-12-01 13:14:36 -0800
commit7382fbdeae0d6dbd1c26ebf4a302f1ccf33d9882 (patch)
tree87269ae3b815aa0cb574ee1533754905373e60a6
parent07f8ba7439f9c942d5bd7b63074e7a1528601713 (diff)
parentda894ff100be9044c490f47f61541481b4f42b1f (diff)
downloadlinux-7382fbdeae0d6dbd1c26ebf4a302f1ccf33d9882.tar.gz
linux-7382fbdeae0d6dbd1c26ebf4a302f1ccf33d9882.tar.bz2
linux-7382fbdeae0d6dbd1c26ebf4a302f1ccf33d9882.zip
RISC-V: __io_writes should respect the length argument
-rw-r--r--arch/riscv/include/asm/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/io.h b/arch/riscv/include/asm/io.h
index c1f32cfcc79b..507ee6a16e67 100644
--- a/arch/riscv/include/asm/io.h
+++ b/arch/riscv/include/asm/io.h
@@ -250,7 +250,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr)
const ctype *buf = buffer; \
\
do { \
- __raw_writeq(*buf++, addr); \
+ __raw_write ## len(*buf++, addr); \
} while (--count); \
} \
afence; \