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

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

Merge "msm: ipa3: fix device hang issue if ipa_clk failed"

parents 55b5ba69 fd1460f5
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -4109,14 +4109,15 @@ static int ipa3_pre_init(const struct ipa3_plat_drv_res *resource_p,
		IPADBG("Skipping bus scaling registration on Virtual plat\n");
	}

	if (ipa3_active_clients_log_init())
		goto fail_init_active_client;

	/* get IPA clocks */
	result = ipa3_get_clks(master_dev);
	if (result)
		goto fail_clk;

	/* init active_clients_log after getting ipa-clk */
	if (ipa3_active_clients_log_init())
		goto fail_init_active_client;

	/* 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;
@@ -4525,9 +4526,9 @@ fail_init_hw:
	iounmap(ipa3_ctx->mmio);
fail_remap:
	ipa3_disable_clks();
fail_clk:
	ipa3_active_clients_log_destroy();
fail_init_active_client:
	ipa3_active_clients_log_destroy();
fail_clk:
	msm_bus_scale_unregister_client(ipa3_ctx->ipa_bus_hdl);
fail_ipahal:
	ipa3_bus_scale_table = NULL;