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

Commit 99995c43 authored by Charan Teja Reddy's avatar Charan Teja Reddy Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: mem-offline: turn off ddr refresh under MEM_CANCEL_ONLINE



mem-offline driver turns on ddr refresh logic during the
MEM_GOING_ONLINE event. But when fail to online pages, which the same
is notified as MEM_CANCEL_ONLINE event, turn off the ddr refresh logic.

Change-Id: I550405a60eb17059e4fd7d89eeccab60fceccc64
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 83380d6b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -218,6 +218,10 @@ static int mem_event_callback(struct notifier_block *self,
	case MEM_CANCEL_ONLINE:
		pr_info("mem-offline: MEM_CANCEL_ONLINE: start = 0x%lx end = 0x%lx",
				start_addr, end_addr);
		if (send_msg(mn, false))
			pr_err("PASR: %s online request addr:0x%llx failed\n",
			       is_rpm_controller ? "RPM" : "AOP",
			       __pfn_to_phys(start));
		break;
	default:
		break;