]> git.baikalelectronics.ru Git - kernel.git/commit
lib: provide a simple generic ioremap implementation
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Aug 2019 09:24:04 +0000 (11:24 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 20:18:20 +0000 (21:18 +0100)
commit7e1fa7f0197b1a3605b459f7c453419250bc6775
tree9d88b3bd5945b7408861a6297b23164323bac713
parent21ecef9972315c96689d3500d74844ffa3571db4
lib: provide a simple generic ioremap implementation

A lot of architectures reuse the same simple ioremap implementation, so
start lifting the most simple variant to lib/ioremap.c.  It provides
ioremap_prot and iounmap, plus a default ioremap that uses prot_noncached,
although that can be overridden by asm/io.h.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Palmer Dabbelt <palmer@dabbelt.com>
include/asm-generic/io.h
lib/Kconfig
lib/ioremap.c