ctx->clk = ERR_PTR(-ENODEV);if(clk_id ==NULL)returnctx; ctx->clk = clk_get(dev, clk_id);if(IS_ERR(ctx->clk)) { ret = PTR_ERR(ctx->clk);gotoerr_free; } ret =clk_prepare(ctx->clk);if(ret <0) { clk_put(ctx->clk);gotoerr_free; }returnctx; err_free: kfree(ctx);...
}if(clk_prepare_enable(mout_atlas_pll) ||clk_prepare_enable(mout_atlas)) { pr_err("Unable to enable Atlas clocks \n");gotoerr_clk_prepare_enable; } rate = clk_get_rate(mout_bus0_pll_atlas) /1000; info->mpll_freq_khz = rate; info->pll_safe_idx = L17; info->max_support_idx...
51CTO博客已为您找到关于clk_prepare_enable的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及clk_prepare_enable问答内容。更多clk_prepare_enable相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。
+ omap_gpio_dbck_disable() + clk_disable_unprepare() Hence, fix it by moeving dbclk prepare/unprepare in OMAP GPIO omap_gpio_probe/omap_gpio_remove. Also, while here, ensure that debounce functionality is disabled if clk_get() failed, because otherwise kernel will carsh in omap2_set_gp...
We must check the return value of clk_prepare_enable() to make sure the hardware spinlock controller can be enabled successfully, otherwise we should return error. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> ...
…respi_probe() Fix the unreasonable clk_prepare_enable() with clk_disable_unprepare() before return from mchp_corespi_probe() in the error handling case. Signed-off-by: Peng Wu <wupeng58@huawei.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/...
> + int ret = clk_prepare_enable(priv->clk); > if (ret < 0) > return ret; > > @@ -67,7 +67,7 @@ static void sh_mobile_sdhi_clk_disable(struct > platform_device *pdev) > struct mmc_host *mmc = platform_get_drvdata(pdev); ...
DS90UB940N-Q1 This thread has been locked. If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question. DS90UB940N-Q1: Abnormal MIPI CLK TCLK-PREPAR...
clk_prepare_enable() may fail, so let's check its return value and propagate it in the case of error. Also, fix the sequence for disabling the clock in the probe error path and also in the remove funct Signed-off-by: Fabio Estevam <fabio.este...@freescale.com> ...
Current sh_mmcif_clk_update() is called from probe() and set_ios(), but, the purpose of later one is just clk_prepare_enable(). No need to setup mmc->f_max/f_min in many times. This patch separe sh_mmcif_clk_update() into clk_prepare_enable() ...