]> git.baikalelectronics.ru Git - kernel.git/commit
clk: zynqmp: replace warn_once with pr_debug for failed clock ops
authorMichael Tretter <m.tretter@pengutronix.de>
Wed, 19 Jan 2022 11:54:34 +0000 (12:54 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 25 Jan 2022 01:18:23 +0000 (17:18 -0800)
commite67d1a3f3b0bd73b8a0d54257a5460988859b9ca
treebf24e1f5af11d6104c18b405de034634bb39de49
parent991a5e519c2aa1f4ed2bf6e2139997d7e7967cb3
clk: zynqmp: replace warn_once with pr_debug for failed clock ops

The warning that a clock operation failed is only printed once. However,
the function is called for various different clocks. The limit hides the
warnings if different clocks are affected by the failures.

The clock ops might fail if the firmware that handles the clocks is
misconfigured. Therefore, replace the pr_warn_once with pr_debug to
allow the user to see all errors if necessary. By default, hide the
error messages and let drivers handle the errors.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Link: https://lore.kernel.org/r/20220119115434.2042017-1-m.tretter@pengutronix.de
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/zynqmp/clk-gate-zynqmp.c
drivers/clk/zynqmp/clk-mux-zynqmp.c
drivers/clk/zynqmp/divider.c
drivers/clk/zynqmp/pll.c