mbox series

[0/2] clk: honor CLK_MUX_ROUND_CLOSEST in mux

Message ID 20180409135921.5617-1-jbrunet@baylibre.com
Headers show
Series clk: honor CLK_MUX_ROUND_CLOSEST in mux | expand

Message

Jerome Brunet April 9, 2018, 1:59 p.m. UTC
CLK_MUX_ROUND_CLOSEST is part of clk_mux and meson's clk_regmap
documentation, so it should be honored by the determine_rate() callback.

It is note the case ATM. The series fixes this problem.

Jerome Brunet (2):
  clk: honor CLK_MUX_ROUND_CLOSEST in generic clk mux
  clk: meson: honor CLK_MUX_ROUND_CLOSEST in clk_regmap

 drivers/clk/clk-mux.c          | 10 +++++++++-
 drivers/clk/clk.c              |  7 ++++---
 drivers/clk/meson/clk-regmap.c | 11 ++++++++++-
 include/linux/clk-provider.h   |  3 +++
 4 files changed, 26 insertions(+), 5 deletions(-)

-- 
2.14.3

Comments

Stephen Boyd April 16, 2018, 4:24 p.m. UTC | #1
Quoting Jerome Brunet (2018-04-09 06:59:19)
> CLK_MUX_ROUND_CLOSEST is part of clk_mux and meson's clk_regmap

> documentation, so it should be honored by the determine_rate() callback.

> 

> It is note the case ATM. The series fixes this problem.


I'll apply these for clk-fixes.