Re: [PATCH 1/5] clk: sunxi-ng: mp: Adjust parent rate for pre-dividers

2017-02-14 Thread Maxime Ripard
On Tue, Feb 14, 2017 at 11:35:22AM +0800, Chen-Yu Tsai wrote: > The MP style clocks support an mux with pre-dividers. While the driver > correctly accounted for them in the .determine_rate callback, it did > not in the .recalc_rate and .set_rate callbacks. > > This means when calculating the facto

[PATCH 1/5] clk: sunxi-ng: mp: Adjust parent rate for pre-dividers

2017-02-13 Thread Chen-Yu Tsai
The MP style clocks support an mux with pre-dividers. While the driver correctly accounted for them in the .determine_rate callback, it did not in the .recalc_rate and .set_rate callbacks. This means when calculating the factors in the .set_rate callback, they would be off by a factor of the activ