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

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

Merge "spi_qsd: Vote for PNOC clock before spi clock"

parents 7d7c05d0 07dd6ce0
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -2613,10 +2613,12 @@ static int msm_spi_pm_suspend_runtime(struct device *device)
		msm_spi_bam_pipe_disconnect(dd, &dd->bam.prod);
		msm_spi_bam_pipe_disconnect(dd, &dd->bam.cons);
	}
	if (dd->pdata && !dd->pdata->active_only)
		msm_spi_clk_path_unvote(dd);
	if (dd->pdata && !dd->pdata->is_shared)
		put_local_resources(dd);

	if (dd->pdata && !dd->pdata->active_only)
		msm_spi_clk_path_unvote(dd);

suspend_exit:
	return 0;
}
@@ -2644,14 +2646,15 @@ static int msm_spi_pm_resume_runtime(struct device *device)
		else
			dd->is_init_complete = true;
	}
	msm_spi_clk_path_init(dd);
	if (!dd->pdata->active_only)
		msm_spi_clk_path_vote(dd);

	if (!dd->pdata->is_shared) {
		ret = get_local_resources(dd);
		if (ret)
			return ret;
	}
	msm_spi_clk_path_init(dd);
	if (!dd->pdata->active_only)
		msm_spi_clk_path_vote(dd);
	if (!dd->pdata->is_shared && dd->use_dma) {
		msm_spi_bam_pipe_connect(dd, &dd->bam.prod,
				&dd->bam.prod.config);