Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 402a5698 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman
Browse files

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: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent ed18e423
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -418,7 +418,7 @@ static size_t fqd_sz, pfdr_sz;
static int zero_priv_mem(phys_addr_t addr, size_t sz)
static int zero_priv_mem(phys_addr_t addr, size_t sz)
{
{
	/* map as cacheable, non-guarded */
	/* map as cacheable, non-guarded */
	void __iomem *tmpp = ioremap_prot(addr, sz, 0);
	void __iomem *tmpp = ioremap_cache(addr, sz);


	if (!tmpp)
	if (!tmpp)
		return -ENOMEM;
		return -ENOMEM;