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

Commit 61bae48b authored by AnilKumar Chimata's avatar AnilKumar Chimata
Browse files

crypto: msm: Fix clock disable warnings



One of the crypto clocks is not enabled during device open
path but disabled in the return/closed path results in clk
warnings. This patch fixes the issue with clock flags.

Change-Id: Ic602e93e38fc0242696c4b2d43c892daf7fd123b
Signed-off-by: default avatarAnilKumar Chimata <anilc@codeaurora.org>
parent e33b9fba
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@ Required properties:
			instance, 1 for second instance, n-1 for n-th instance.

Optional properties:
  - qcom,support-core-clk-only : optional, indicates if the HW supports single crypto core clk.

Example:

+7 −4
Original line number Diff line number Diff line
@@ -5354,10 +5354,13 @@ int qce_disable_clk(void *handle)
		clk_disable_unprepare(pce_dev->ce_bus_clk);
	if (pce_dev->ce_clk)
		clk_disable_unprepare(pce_dev->ce_clk);
	if (pce_dev->ce_core_clk)
		clk_disable_unprepare(pce_dev->ce_core_clk);
	if (pce_dev->support_only_core_src_clk) {
		if (pce_dev->ce_core_src_clk)
			clk_disable_unprepare(pce_dev->ce_core_src_clk);
	} else {
		if (pce_dev->ce_core_clk)
			clk_disable_unprepare(pce_dev->ce_core_clk);
	}

	return rc;
}