Skip to content

Commit da894ff

Browse files
RISC-V: __io_writes should respect the length argument
Whoops -- I must have just been being an idiot again. Thanks to Segher for finding the bug :). CC: Segher Boessenkool <segher@kernel.crashing.org> Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
1 parent 4fbd8d1 commit da894ff

File tree

1 file changed

+1
-1
lines changed
  • arch/riscv/include/asm

1 file changed

+1
-1
lines changed

arch/riscv/include/asm/io.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static inline u64 __raw_readq(const volatile void __iomem *addr)
250250
const ctype *buf = buffer; \
251251
\
252252
do { \
253-
__raw_writeq(*buf++, addr); \
253+
__raw_write ## len(*buf++, addr); \
254254
} while (--count); \
255255
} \
256256
afence; \

0 commit comments

Comments
 (0)