Skip to content

Commit

Permalink
RISC-V: __io_writes should respect the length argument
Browse files Browse the repository at this point in the history
Whoops -- I must have just been being an idiot again.  Thanks to Segher
for finding the bug :).

CC: Segher Boessenkool <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
  • Loading branch information
palmer-dabbelt committed Dec 1, 2017
1 parent 4fbd8d1 commit da894ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/riscv/include/asm/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit da894ff

Please sign in to comment.