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

Commit 6867a4e4 authored by Liam Mark's avatar Liam Mark
Browse files

Revert "dma-coherent: limit alignment of dma-coherent allocations"



This reverts commit 88ae006e ("dma-coherent: limit alignment of
dma-coherent allocations")

This change did not properly limit alignment.
Revert for now and decide if an alternative solution should be applied.

Change-Id: If3acf8bd3d7fd4ec77c499e4e659c0a678a52735
Signed-off-by: default avatarLiam Mark <lmark@codeaurora.org>
parent 669d044b
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -168,9 +168,6 @@ static void *__dma_alloc_from_coherent(struct dma_coherent_mem *mem,
	int pageno;
	void *ret;

	if (order > CONFIG_CMA_ALIGNMENT)
		order = CONFIG_CMA_ALIGNMENT;

	spin_lock_irqsave(&mem->spinlock, flags);

	if (unlikely(size > (mem->size << PAGE_SHIFT)))