You need to sign in or sign up before continuing.
clk: rework calls to round and determine rate callbacks
Rework the way the callbacks round_rate() and determine_rate() are called. The goal is to do this at a single point and make it easier to add conditions before calling them. Because of this factorization, rate returned by determine_rate() is also checked against the min and max rate values This rework is done to ease the integration of "protected" clock functionality. Acked-by: NLinus Walleij <linus.walleij@linaro.org> Tested-by: NQuentin Schulz <quentin.schulz@free-electrons.com> Tested-by: NMaxime Ripard <maxime.ripard@free-electrons.com> Acked-by: NMichael Turquette <mturquette@baylibre.com> Signed-off-by: NJerome Brunet <jbrunet@baylibre.com> Signed-off-by: NMichael Turquette <mturquette@baylibre.com> Link: lkml.kernel.org/r/20171201215200.23523-5-jbrunet@baylibre.com
Showing
想要评论请 注册 或 登录