Loading drivers/soc/qcom/bgcom_spi.c +2 −0 Original line number Original line Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading Loading
drivers/soc/qcom/bgcom_spi.c +2 −0 Original line number Original line Diff line number Diff line Loading @@ -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; Loading Loading @@ -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; Loading