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

Commit 9e4d5b47 authored by Runmin Wang's avatar Runmin Wang
Browse files

soc: qcom: pil: Use the correct DMA attribute flag



Use DMA_ATTR_STRONGLY_ORDERED for the dma_alloc operation to allocate
buffer for the image header.

Change-Id: Ic0cef477d7d1943c5d0e9cea6edb447235a43b97
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent 2ba09e53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -612,7 +612,7 @@ static int pil_init_image_trusted(struct pil_desc *pil,

	dev.coherent_dma_mask =
		DMA_BIT_MASK(sizeof(dma_addr_t) * 8);
	attrs |= DMA_ATTR_PRIVILEGED;
	attrs |= DMA_ATTR_STRONGLY_ORDERED;
	mdata_buf = dma_alloc_attrs(&dev, size, &mdata_phys, GFP_KERNEL,
					attrs);
	if (!mdata_buf) {