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

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

Merge "soc: qcom: bgcom: disable IRQ in pm suspend"

parents bbbb61fa 197330ee
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -843,6 +843,7 @@ int bgcom_resume(void *handle)
	mutex_lock(&bg_resume_mutex);
	mutex_lock(&bg_resume_mutex);
	if (bg_spi->bg_state == BGCOM_STATE_ACTIVE)
	if (bg_spi->bg_state == BGCOM_STATE_ACTIVE)
		goto unlock;
		goto unlock;
	enable_irq(bg_irq);
	do {
	do {
		if (is_bg_resume(handle)) {
		if (is_bg_resume(handle)) {
			bg_spi->bg_state = BGCOM_STATE_ACTIVE;
			bg_spi->bg_state = BGCOM_STATE_ACTIVE;
@@ -1078,6 +1079,7 @@ static int bgcom_pm_suspend(struct device *dev)
	if (ret == 0) {
	if (ret == 0) {
		bg_spi->bg_state = BGCOM_STATE_SUSPEND;
		bg_spi->bg_state = BGCOM_STATE_SUSPEND;
		atomic_set(&bg_is_spi_active, 0);
		atomic_set(&bg_is_spi_active, 0);
		disable_irq(bg_irq);
	}
	}
	pr_info("suspended with : %d\n", ret);
	pr_info("suspended with : %d\n", ret);
	return ret;
	return ret;