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

Commit ef35d6cf authored by Skylar Chang's avatar Skylar Chang
Browse files

msm:ipa: vote for svs2 during ipa initialization



Not voting turbo on ipa initialization, change
to vote svs2 on bootup. Also add check on
ipa3_tx_dp to see if pipe sys empty or not.

Change-Id: I94b67847e7f87602ebc42a1759bdde713e0a600d
Signed-off-by: default avatarSkylar Chang <chiaweic@codeaurora.org>
parent 5027ffca
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4966,7 +4966,8 @@ static int ipa3_pre_init(const struct ipa3_plat_drv_res *resource_p,

	/* Enable ipa3_ctx->enable_clock_scaling */
	ipa3_ctx->enable_clock_scaling = 1;
	ipa3_ctx->curr_ipa_clk_rate = ipa3_ctx->ctrl->ipa_clk_rate_turbo;
	/* vote for svs2 on bootup */
	ipa3_ctx->curr_ipa_clk_rate = ipa3_ctx->ctrl->ipa_clk_rate_svs2;

	/* enable IPA clocks explicitly to allow the initialization */
	ipa3_enable_clks();
+1 −1
Original line number Diff line number Diff line
@@ -1311,7 +1311,7 @@ int ipa3_tx_dp(enum ipa_client_type dst, struct sk_buff *skb,

	sys = ipa3_ctx->ep[src_ep_idx].sys;

	if (!sys->ep->valid) {
	if (!sys || !sys->ep->valid) {
		IPAERR("pipe not valid\n");
		goto fail_gen;
	}