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

Commit 197330ee authored by Ajit Kumar's avatar Ajit Kumar Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: bgcom: disable IRQ in pm suspend



Disable IRQ during pm suspend and enable IRQ in resume.

Change-Id: Ia12fb371d8b1244f6a361b5e66df6dbe41f5766e
Signed-off-by: default avatarAjit Kumar <kajit@codeaurora.org>
parent 1587b6ec
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -843,6 +843,7 @@ int bgcom_resume(void *handle)
	mutex_lock(&bg_resume_mutex);
	if (bg_spi->bg_state == BGCOM_STATE_ACTIVE)
		goto unlock;
	enable_irq(bg_irq);
	do {
		if (is_bg_resume(handle)) {
			bg_spi->bg_state = BGCOM_STATE_ACTIVE;
@@ -1078,6 +1079,7 @@ static int bgcom_pm_suspend(struct device *dev)
	if (ret == 0) {
		bg_spi->bg_state = BGCOM_STATE_SUSPEND;
		atomic_set(&bg_is_spi_active, 0);
		disable_irq(bg_irq);
	}
	pr_info("suspended with : %d\n", ret);
	return ret;