summaryrefslogtreecommitdiffstats
path: root/lib/logic_pio.c
diff options
context:
space:
mode:
authorJohn Garry <john.garry@huawei.com>2020-03-28 00:06:12 +0800
committerWei Xu <xuwei5@hisilicon.com>2020-05-07 14:54:18 +0800
commitf009c89df79abea5f5244b8135a205f7d4352f86 (patch)
tree1a90a66d9638933c0d6df3a10bcf56d9413039e8 /lib/logic_pio.c
parent8f3d9f354286745c751374f5f1fcafee6b3f3136 (diff)
downloadlinux-stable-f009c89df79abea5f5244b8135a205f7d4352f86.tar.gz
linux-stable-f009c89df79abea5f5244b8135a205f7d4352f86.tar.bz2
linux-stable-f009c89df79abea5f5244b8135a205f7d4352f86.zip
io: Provide _inX() and _outX()
Since commit a7851aa54c0c ("io: change outX() to have their own IO barrier overrides") and commit 87fe2d543f81 ("io: change inX() to have their own IO barrier overrides"), the outX and inX functions have memory barriers which can be overridden. However, the generic logic_pio lib has continued to use readl/writel et al for IO port accesses, which has weaker barriers on arm64. Provide generic _inX() and _outX(), which can be used by logic pio. For consistency, we check for !defined({in,out}X) && !defined(_{in,out}X), for defining _{in,out}X, while a check for just !defined({in,out}X) should suffice. Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
Diffstat (limited to 'lib/logic_pio.c')
0 files changed, 0 insertions, 0 deletions