]> git.baikalelectronics.ru Git - kernel.git/commit
clk: take the prepare lock out of clk_core_set_parent
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 1 Dec 2017 21:51:52 +0000 (22:51 +0100)
committerMichael Turquette <mturquette@baylibre.com>
Wed, 20 Dec 2017 00:17:37 +0000 (16:17 -0800)
commit92cc0ac5f6f59c6c1027e23df46a87f3f3dc850b
treeae5813dd90f18de807718d52cd141872412679af
parent1118c63d5bcae44c0ccd8b2b76033161387602f0
clk: take the prepare lock out of clk_core_set_parent

Rework set_parent core function so it can be called when the prepare lock
is already held by the caller.

This rework is done to ease the integration of the "protected" clock
functionality.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Tested-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/20171201215200.23523-3-jbrunet@baylibre.com
drivers/clk/clk.c