diff options
author | Huacai Chen <[email protected]> | 2018-06-12 17:54:42 +0800 |
---|---|---|
committer | Paul Burton <[email protected]> | 2018-06-19 19:39:19 -0700 |
commit | 18f3e95b90b28318ef35910d21c39908de672331 (patch) | |
tree | fc35bd1ab9bf0389c614f50076cb4bf11cc037d5 /include/linux/fpga/fpga-mgr.h | |
parent | 6fb8656646f996d1eef42e6d56203c4915cb9e08 (diff) |
MIPS: io: Add barrier after register read in inX()
While a barrier is present in the outX() functions before the register
write, a similar barrier is missing in the inX() functions after the
register read. This could allow memory accesses following inX() to
observe stale data.
This patch is very similar to commit a1cc7034e33d12dc1 ("MIPS: io: Add
barrier after register read in readX()"). Because war_io_reorder_wmb()
is both used by writeX() and outX(), if readX() need a barrier then so
does inX().
Cc: [email protected]
Signed-off-by: Huacai Chen <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/19516/
Signed-off-by: Paul Burton <[email protected]>
Cc: James Hogan <[email protected]>
Cc: [email protected]
Cc: Fuxin Zhang <[email protected]>
Cc: Zhangjin Wu <[email protected]>
Cc: Huacai Chen <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions