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

Commit 5d814fd1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: fix to system suspend"

parents a5ef7581 4c6d6977
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3519,6 +3519,9 @@ static int ipa_init(const struct ipa_plat_drv_res *resource_p,



	/* Create a wakeup source. */
	ipa_ctx->pdev->power.wakeup = wakeup_source_register("IPA_WS");

	/* Initialize IPA RM (resource manager) */
	result = ipa_rm_initialize();
	if (result) {
+4 −0
Original line number Diff line number Diff line
@@ -246,6 +246,7 @@ static void ipa_handle_tx(struct ipa_sys_context *sys)
	int cnt;

	ipa_inc_client_enable_clks();
	pm_stay_awake(ipa_ctx->pdev);
	do {
		cnt = ipa_handle_tx_core(sys, true, true);
		if (cnt == 0) {
@@ -258,6 +259,7 @@ static void ipa_handle_tx(struct ipa_sys_context *sys)
	} while (inactive_cycles <= POLLING_INACTIVITY_TX);

	ipa_tx_switch_to_intr_mode(sys);
	pm_relax(ipa_ctx->pdev);
	ipa_dec_client_disable_clks();
}

@@ -856,6 +858,7 @@ static void ipa_handle_rx(struct ipa_sys_context *sys)
	int cnt;

	ipa_inc_client_enable_clks();
	pm_stay_awake(ipa_ctx->pdev);
	do {
		cnt = ipa_handle_rx_core(sys, true, true);
		if (cnt == 0) {
@@ -876,6 +879,7 @@ static void ipa_handle_rx(struct ipa_sys_context *sys)
	} while (inactive_cycles <= POLLING_INACTIVITY_RX);

	ipa_rx_switch_to_intr_mode(sys);
	pm_relax(ipa_ctx->pdev);
	ipa_dec_client_disable_clks();
}