From: Alexandre Belloni Date: Tue, 1 Jul 2014 14:12:12 +0000 (+0200) Subject: clk: at91: main: warn when the main crystal frequency is not set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4da66b631f6bee2dfdb77b571418f11016a7ba68;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git clk: at91: main: warn when the main crystal frequency is not set When the main crystal frequency is not set, the main clock is approximated using the MAINF value in the CKGR_MCFR register. Warn the user in that case. Signed-off-by: Alexandre Belloni Acked-by: Boris BREZILLON Signed-off-by: Mike Turquette --- diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c index 733306131b99..59fa3cc96c9e 100644 --- a/drivers/clk/at91/clk-main.c +++ b/drivers/clk/at91/clk-main.c @@ -388,6 +388,7 @@ static unsigned long clk_main_recalc_rate(struct at91_pmc *pmc, if (parent_rate) return parent_rate; + pr_warn("Main crystal frequency not set, using approximate value\n"); tmp = pmc_read(pmc, AT91_CKGR_MCFR); if (!(tmp & AT91_PMC_MAINRDY)) return 0;