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

Commit 9ec22990 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa4: Do not notify clk state starting at IPAv4.1



Add an if check to not send GATE/UNGATE notifications
to IPA uC starting at IPAv4.1.

Change-Id: I03595217ea7655997428738c2bfbef47aa4c68fd
CRs-fixed: 2240786
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 37023fd5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -818,6 +818,11 @@ int ipa3_uc_notify_clk_state(bool enabled)
{
	u32 opcode;

	if (ipa3_ctx->ipa_hw_type > IPA_HW_v4_0) {
		IPADBG_LOW("not supported past IPA v4.0\n");
		return 0;
	}

	/*
	 * If the uC interface has not been initialized yet,
	 * don't notify the uC on the enable/disable