OSDN Git Service

soc/fsl/qbman: use ioremap_cache() instead of ioremap_prot(0)
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 9 Oct 2018 13:51:39 +0000 (13:51 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 14 Oct 2018 07:04:09 +0000 (18:04 +1100)
commit402a5698b4462a3dcfcf9bdafabed7f63c9be7d8
tree88607d03cdcbfd80c2ed0f56ad84c31e6ca40cc5
parented18e423a3d9b2dc9db801358b754e722fcabaff
soc/fsl/qbman: use ioremap_cache() instead of ioremap_prot(0)

ioremap_prot() with flag set to 0 relies on a hack in
__ioremap_caller() which adds PAGE_KERNEL flags when the
handed flags don't look like a valid set of flags
(ie don't include _PAGE_PRESENT)

The intention being to map cached memory, use ioremap_cache() instead.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/soc/fsl/qbman/qman_ccsr.c