OSDN Git Service

csky: Fixup ioremap function losing
authorGuo Ren <ren_guo@c-sky.com>
Thu, 15 Aug 2019 08:24:56 +0000 (16:24 +0800)
committerGuo Ren <ren_guo@c-sky.com>
Thu, 15 Aug 2019 11:21:28 +0000 (19:21 +0800)
commit5336c17928cc464845ff765ce45b368c22f848e0
tree867349276607a1584dd0480fa67beda89e0cc76f
parentae76f635d4e1cffa6870cc5472567ca9d6940a22
csky: Fixup ioremap function losing

Implement the following apis to meet usage in different scenarios.

 - ioremap          (NonCache + StrongOrder)
 - ioremap_nocache  (NonCache + StrongOrder)
 - ioremap_wc       (NonCache + WeakOrder  )
 - ioremap_cache    (   Cache + WeakOrder  )

Also change flag VM_ALLOC to VM_IOREMAP in get_vm_area_caller.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Christoph Hellwig <hch@infradead.org>
arch/csky/include/asm/io.h
arch/csky/mm/ioremap.c