Re: [PATCH 1/2] clk: honor CLK_MUX_ROUND_CLOSEST in generic clk mux

2018-04-25 Thread Jerome Brunet
On Tue, 2018-04-24 at 11:04 -0300, Ezequiel Garcia wrote: > > } > > +EXPORT_SYMBOL_GPL(clk_mux_determine_rate_flags); > > > > Why do we need to export this? Because any driver implementing some type of mux may use this function, and the driver could be a module. I have one in the pipe right no

Re: [PATCH 1/2] clk: honor CLK_MUX_ROUND_CLOSEST in generic clk mux

2018-04-24 Thread Ezequiel Garcia
On 9 April 2018 at 10:59, Jerome Brunet wrote: > > CLK_MUX_ROUND_CLOSEST is part of the clk_mux documentation but clk_mux > directly calls __clk_mux_determine_rate(), which overrides the flag. > As result, if clk_mux is instantiated with CLK_MUX_ROUND_CLOSEST, the > flag will be ignored and the cl

[PATCH 1/2] clk: honor CLK_MUX_ROUND_CLOSEST in generic clk mux

2018-04-09 Thread Jerome Brunet
CLK_MUX_ROUND_CLOSEST is part of the clk_mux documentation but clk_mux directly calls __clk_mux_determine_rate(), which overrides the flag. As result, if clk_mux is instantiated with CLK_MUX_ROUND_CLOSEST, the flag will be ignored and the clock rounded down. To solve this, this patch expose clk_mu