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

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

soc: qcom: bgcom: remove irq disable and enable on suspend resume



Do not disable irq on driver suspend or resume.

Change-Id: Iddd5bf00603e41c557ce8485c4d0b6f5ef88eb3f
Signed-off-by: default avatarAjit Kumar <kajit@codeaurora.org>
parent c7bfb4a3
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1078,7 +1078,6 @@ 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;
@@ -1094,8 +1093,6 @@ static int bgcom_pm_resume(struct device *dev)
	clnt_handle.bg_spi = spi;
	atomic_set(&bg_is_spi_active, 1);
	ret = bgcom_resume(&clnt_handle);
	if (ret == 0)
		enable_irq(bg_irq);
	pr_info("Bgcom resumed with : %d\n", ret);
	return ret;
}