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

Commit f6f85699 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: pil: Align to SZ_4K by default"

parents e1627c4a 3e5e11b4
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -451,10 +451,12 @@ static int pil_alloc_region(struct pil_priv *priv, phys_addr_t min_addr,
		return 0;
	}

	if (align > SZ_4M)
	if (align >= SZ_4M)
		aligned_size = ALIGN(size, SZ_4M);
	else
	else if (align >= SZ_1M)
		aligned_size = ALIGN(size, SZ_1M);
	else
		aligned_size = ALIGN(size, SZ_4K);

	priv->desc->attrs = 0;
	priv->desc->attrs |= DMA_ATTR_SKIP_ZEROING | DMA_ATTR_NO_KERNEL_MAPPING;