spi_qsd: Vote for PNOC clock before spi clock
spi core and ahb clocks are sourced from the PNOC clock. so vote for PNOC clock before voting for the spi clocks to avoid unclocked register access during the spi transactions or accessing the registers from the debugfs. Change-Id: Icf4512b2ff87612902ea7cfb2449a9625260074f Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
This commit is contained in:
parent
123d4855cb
commit
967e370500
|
@ -2813,10 +2813,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;
|
||||
}
|
||||
|
@ -2844,14 +2846,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);
|
||||
|
|
Loading…
Reference in New Issue