Message ID | 20180417173038.25510-5-brgl@bgdev.pl (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
On Tuesday 17 April 2018 11:00 PM, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bgolaszewski@baylibre.com> > > We're currently switching the platform to using the common clock > framework. We need to explicitly prepare and unprepare the rproc > clock. > > Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> > Acked-by: Suman Anna <s-anna@ti.com> > Reviewed-by: David Lechner <david@lechnology.com> Reviewed-by: Sekhar Nori <nsekhar@ti.com> This should be safe to apply to v4.17-rc1 as well (for inclusion in v4.18). Bartosz, I noticed that CONFIG_REMOTEPROC and the DA8XX driver is not enabled in davinci_all_defconfig. Can you please send a patch enabling that too? Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
2018-04-18 7:27 GMT+02:00 Sekhar Nori <nsekhar@ti.com>: > On Tuesday 17 April 2018 11:00 PM, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski <bgolaszewski@baylibre.com> >> >> We're currently switching the platform to using the common clock >> framework. We need to explicitly prepare and unprepare the rproc >> clock. >> >> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> >> Acked-by: Suman Anna <s-anna@ti.com> >> Reviewed-by: David Lechner <david@lechnology.com> > > Reviewed-by: Sekhar Nori <nsekhar@ti.com> > > This should be safe to apply to v4.17-rc1 as well (for inclusion in v4.18). > > Bartosz, I noticed that CONFIG_REMOTEPROC and the DA8XX driver is not > enabled in davinci_all_defconfig. Can you please send a patch enabling > that too? > > Thanks, > Sekhar Sure, will do. Bart -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/remoteproc/da8xx_remoteproc.c b/drivers/remoteproc/da8xx_remoteproc.c index 2b24291337b7..f134192922e0 100644 --- a/drivers/remoteproc/da8xx_remoteproc.c +++ b/drivers/remoteproc/da8xx_remoteproc.c @@ -149,9 +149,9 @@ static int da8xx_rproc_start(struct rproc *rproc) writel(rproc->bootaddr, drproc->bootreg); - ret = clk_enable(dsp_clk); + ret = clk_prepare_enable(dsp_clk); if (ret) { - dev_err(dev, "clk_enable() failed: %d\n", ret); + dev_err(dev, "clk_prepare_enable() failed: %d\n", ret); return ret; } @@ -165,7 +165,7 @@ static int da8xx_rproc_stop(struct rproc *rproc) struct da8xx_rproc *drproc = rproc->priv; davinci_clk_reset_assert(drproc->dsp_clk); - clk_disable(drproc->dsp_clk); + clk_disable_unprepare(drproc->dsp_clk); return 0; }