[PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Heiko Stübner
SoCs like the Rockchip Cortex-A9 ones contain divider some clocks that use the regular mechanisms for storage but allow only even dividers and 1 to be used. Therefore add a flag that lets _is_valid_div limit the valid dividers to these values. _get_maxdiv is also adapted to return even values for

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Andy Shevchenko
On Tue, Jun 11, 2013 at 2:29 PM, Heiko Stübner he...@sntech.de wrote: SoCs like the Rockchip Cortex-A9 ones contain divider some clocks that use the regular mechanisms for storage but allow only even dividers and 1 to be used. Therefore add a flag that lets _is_valid_div limit the valid

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Heiko Stübner
Am Dienstag, 11. Juni 2013, 13:51:56 schrieb Andy Shevchenko: On Tue, Jun 11, 2013 at 2:29 PM, Heiko Stübner he...@sntech.de wrote: SoCs like the Rockchip Cortex-A9 ones contain divider some clocks that use the regular mechanisms for storage but allow only even dividers and 1 to be used.

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Andy Shevchenko
On Tue, Jun 11, 2013 at 3:06 PM, Heiko Stübner he...@sntech.de wrote: Am Dienstag, 11. Juni 2013, 13:51:56 schrieb Andy Shevchenko: On Tue, Jun 11, 2013 at 2:29 PM, Heiko Stübner he...@sntech.de wrote: [] @@ -141,6 +149,8 @@ static bool _is_valid_div(struct clk_divider *divider, unsigned

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Andy Shevchenko
On Tue, Jun 11, 2013 at 3:37 PM, Andy Shevchenko andy.shevche...@gmail.com wrote: On Tue, Jun 11, 2013 at 3:06 PM, Heiko Stübner he...@sntech.de wrote: Am Dienstag, 11. Juni 2013, 13:51:56 schrieb Andy Shevchenko: On Tue, Jun 11, 2013 at 2:29 PM, Heiko Stübner he...@sntech.de wrote: This

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Mike Turquette
Quoting Heiko Stübner (2013-06-11 04:29:32) SoCs like the Rockchip Cortex-A9 ones contain divider some clocks that use the regular mechanisms for storage but allow only even dividers and 1 to be used. Therefore add a flag that lets _is_valid_div limit the valid dividers to these values.

Re: [PATCH v3 1/7] clk: divider: add flag to limit possible dividers to even numbers

2013-06-11 Thread Heiko Stübner
Am Dienstag, 11. Juni 2013, 20:57:50 schrieb Mike Turquette: Quoting Heiko Stübner (2013-06-11 04:29:32) SoCs like the Rockchip Cortex-A9 ones contain divider some clocks that use the regular mechanisms for storage but allow only even dividers and 1 to be used. Therefore add a flag