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

Commit 17c753e4 authored by Arun KS's avatar Arun KS Committed by Gerrit - the friendly Code Review server
Browse files

qcom: peripheral-loader: skip dma attr init if memory is allocated



Subsystems like modem never free up the allocated memory. So skip
init_dma_attrs to avoid resetting the parmeters set during allocation.

CRs-Fixed: 913387
Change-Id: I57a02c15bedc0a76285d7190f05d7c6e8e5a9d8c
Signed-off-by: default avatarArun KS <arunks@codeaurora.org>
parent 91cab8ef
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -441,6 +441,7 @@ static int pil_alloc_region(struct pil_priv *priv, phys_addr_t min_addr,
	else
		aligned_size = ALIGN(size, SZ_1M);

	init_dma_attrs(&priv->desc->attrs);
	dma_set_attr(DMA_ATTR_SKIP_ZEROING, &priv->desc->attrs);
	dma_set_attr(DMA_ATTR_NO_KERNEL_MAPPING, &priv->desc->attrs);

@@ -783,8 +784,6 @@ int pil_boot(struct pil_desc *desc)
		goto release_fw;
	}

	init_dma_attrs(&desc->attrs);

	ret = pil_init_mmap(desc, mdt);
	if (ret)
		goto release_fw;