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

Commit b6f6137a authored by Harsh Shah's avatar Harsh Shah Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: util: Disable IRQ before clocks



Make soc_enable and soc_disable symmentric. Currently, clocks are
disabled before IRQ, causing unclocked access in IRQ handler. Move
the disable IRQ before disabling clocks to avoid that.

Change-Id: Ib395823adc4384a9f4b99be6cc75e2251718754c
Signed-off-by: default avatarHarsh Shah <harshs@codeaurora.org>
parent b81eb44c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1355,14 +1355,14 @@ int cam_soc_util_disable_platform_resource(struct cam_hw_soc_info *soc_info,
	if (!soc_info)
		return -EINVAL;

	if (disble_irq)
		rc |= cam_soc_util_irq_disable(soc_info);

	if (disable_clocks)
		cam_soc_util_clk_disable_default(soc_info);

	cam_soc_util_regulator_disable_default(soc_info);

	if (disble_irq)
		rc |= cam_soc_util_irq_disable(soc_info);

	if (soc_info->pinctrl_info.pinctrl &&
		soc_info->pinctrl_info.gpio_state_suspend)
		rc = pinctrl_select_state(soc_info->pinctrl_info.pinctrl,