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

Commit c740275e authored by Yue Ma's avatar Yue Ma
Browse files

cnss: Remove ioremap code for SSR



SSR framework/application can direcly handle the physical address of
reserved debug memory for CNSS, so it doesn't need to provide them
the address after ioremap.

Change-Id: I9355dbb7d6638481ea8accbaf3bb71f94344ffd2
CRs-fixed: 585079
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 7cb5bf37
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -639,7 +639,6 @@ err_wlan_vreg_on:

static int cnss_ramdump(int enable, const struct subsys_desc *subsys)
{
	void __iomem *ramdump_address;
	struct ramdump_segment segment;
	unsigned long address = 0;
	unsigned long size = 0;
@@ -654,14 +653,9 @@ static int cnss_ramdump(int enable, const struct subsys_desc *subsys)
	if (cnss_get_ramdump_mem(&address, &size))
		return -EINVAL;

	ramdump_address = ioremap(address, size);
	if (!ramdump_address)
		return -EINVAL;

	segment.address = (unsigned long)ramdump_address;
	segment.address = address;
	segment.size = size;
	ret = do_ramdump(penv->ramdump_dev, &segment, 1);
	iounmap(ramdump_address);

	return ret;
}