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

Commit 9dc7fc79 authored by Gilad Avidov's avatar Gilad Avidov
Browse files

soc: qcom: pil-femto-modem: Flush cache before unmap



All memory write operations must be completed before passing
data size to mba.

Change-Id: I2f55faa7cf2c2cb8c69581d8d4011d8e813721d7
Acked-by: default avatarKaushik Sikdar <ksikdar@qti.qualcomm.com>
Signed-off-by: default avatarGilad Avidov <gavidov@codeaurora.org>
parent 77af73d4
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@
#include <linux/sysfs.h>

#include <asm/page.h>
#include <asm/cacheflush.h>

#include "peripheral-loader.h"
#include "pil-q6v5.h"
@@ -132,7 +133,9 @@ static void *pil_femto_modem_map_fw_mem(phys_addr_t paddr, size_t size, void *d)

static void pil_femto_modem_unmap_fw_mem(void *vaddr, size_t size, void *data)
{
	flush_cache_vmap((unsigned long) vaddr, (unsigned long) vaddr + size);
	iounmap(vaddr);
	isb();
}

static int pil_femto_modem_send_rmb_advance(void __iomem *rmb_base, u32 id)