asm-generic/io: Pass result of I/O accessor to __io_[p]ar()
mainline inclusion from mainline-v5.0 commit abbbbc83a210e95e2ae4ee71e50930a8cec6f081 category: bugfix bugzilla: NA CVE: NA The inX() and readX() I/O accessors must enforce ordering against subsequent calls to the delay() routines, so that a read-back from a device can be used to postpone a subsequent write to the same device. On some architectures, including arm64, this ordering can only be achieved by creating a dependency on the value returned by the I/O accessor operation, so we need to pass the value we read to the __io_par() and __io_ar() macros in these cases. Acked-by: NArnd Bergmann <arnd@arndb.de> Reported-by: NAndrew Murray <andrew.murray@arm.com> Reviewed-by: NPalmer Dabbelt <palmer@sifive.com> Signed-off-by: NWill Deacon <will.deacon@arm.com> Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com> Signed-off-by: NXuefeng Wang <wxf.wang@hisilicon.com> Reviewed-by: NYang Yingliang <yangyingliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录