]> git.baikalelectronics.ru Git - kernel.git/commit
clk: Warn about critical clks that fail to enable
authorStephen Boyd <sboyd@kernel.org>
Thu, 26 Dec 2019 22:09:27 +0000 (14:09 -0800)
committerStephen Boyd <sboyd@kernel.org>
Sun, 5 Jan 2020 07:21:08 +0000 (23:21 -0800)
commite25d026319a74a0969517230f15892d7bbf089b5
tree1209cb2957868f62dd93d4c804b09330fe964ecc
parent494ee16e8638be81366af119d360425145f6b4c6
clk: Warn about critical clks that fail to enable

If we don't warn here users of the CLK_IS_CRITICAL flag may not know
that their clk isn't actually enabled because it silently fails to
enable. Let's print a warning in that case so developers find these
problems faster.

Suggested-by: Jerome Brunet <jbrunet@baylibre.com>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Link: https://lkml.kernel.org/r/20200102005503.71923-1-sboyd@kernel.org
Reviewed-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
drivers/clk/clk.c