clk: sunxi-ng: Fix fractional mode for N-M clocks
authorJernej Škrabec <jernej.skrabec@siol.net>
Sun, 30 Jul 2017 16:41:47 +0000 (18:41 +0200)
committerChen-Yu Tsai <wens@csie.org>
Tue, 1 Aug 2017 02:18:21 +0000 (10:18 +0800)
commitb64dfec01050a010fa764dae3746353bdbdecfe1
tree1e6eb799bccd80e6a03a67d1936751b6027a5c91
parentf70893dcce0c575c2cddaf13430c3426ca73c7c4
clk: sunxi-ng: Fix fractional mode for N-M clocks

N-M factor clock driver is missing a call to ccu_frac_helper_enable()
when fractional mode is used. Additionally, most SoCs require that M
factor must be set to 0 when fractional mode is used.

Without this patch, clock keeps the old value and clk_set_rate() returns
without error.

Fixes: 6174a1e24b0d ("clk: sunxi-ng: Add N-M-factor clock support")
CC: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
drivers/clk/sunxi-ng/ccu_nm.c