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

Commit 2a7f493e authored by Ravi Gummadidala's avatar Ravi Gummadidala
Browse files

msm: ipa: clock IPA before post-OOM replenish



A delayed work is used to re-attempt RX buffer replenish when
desc FIFO goes empty. This commit ensures IPA is clocked during
the recovery procedure.

Change-Id: Ia04e5160a9a65aa5c86eb4f83815a61f4fa43344
Signed-off-by: default avatarRavi Gummadidala <rgummadi@codeaurora.org>
parent 4287e144
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1724,7 +1724,7 @@ fail_skb_alloc:
fail_kmem_cache_alloc:
	if (rx_len_cached == 0)
		queue_delayed_work(sys->wq, &sys->replenish_rx_work,
				msecs_to_jiffies(10));
				msecs_to_jiffies(1));
}

static void ipa_fast_replenish_rx_cache(struct ipa_sys_context *sys)
@@ -1780,7 +1780,9 @@ static void replenish_rx_work_func(struct work_struct *work)
	struct ipa_sys_context *sys;
	dwork = container_of(work, struct delayed_work, work);
	sys = container_of(dwork, struct ipa_sys_context, replenish_rx_work);
	ipa_inc_client_enable_clks();
	sys->repl_hdlr(sys);
	ipa_dec_client_disable_clks();
}

/**