Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2016-01-04 Thread Tero Kristo
On 01/04/2016 06:37 PM, Tony Lindgren wrote: * Russell King - ARM Linux [160104 06:43]: On Mon, Jan 04, 2016 at 03:27:57PM +0200, Tero Kristo wrote: On 01/04/2016 12:21 PM, Geert Uytterhoeven wrote: FWIW, there are small loops with just a cpu_relax() in various clock

Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2016-01-04 Thread Michael Turquette
Quoting Tero Kristo (2016-01-04 11:15:36) > On 01/04/2016 06:37 PM, Tony Lindgren wrote: > > * Russell King - ARM Linux [160104 06:43]: > >> On Mon, Jan 04, 2016 at 03:27:57PM +0200, Tero Kristo wrote: > >>> On 01/04/2016 12:21 PM, Geert Uytterhoeven wrote: > FWIW,

[PATCH] clk: optimize the divider walk in clk_divider_bestdiv()

2016-01-04 Thread Masahiro Yamada
Because _next_div() returns a valid divider, there is no need to consult _is_valid_div() for the validity of the divider in every iteration. Signed-off-by: Masahiro Yamada --- drivers/clk/clk-divider.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2016-01-04 Thread Tero Kristo
On 01/04/2016 12:21 PM, Geert Uytterhoeven wrote: Hi Tero, On Mon, Jan 4, 2016 at 8:36 AM, Tero Kristo wrote: On 01/01/2016 07:48 AM, Michael Turquette wrote: Quoting Tero Kristo (2015-12-18 05:58:58) +static int _omap4_hwmod_clk_enable(struct clk_hw *hw) +{ + struct

[PATCH v2 2/6] dt-bindings: ARM: Mediatek: Document bindings for MT2701

2016-01-04 Thread James Liao
This patch adds the binding documentation for apmixedsys, bdpsys, ethsys, hifsys, imgsys, infracfg, mmsys, pericfg, topckgen and vdecsys for Mediatek MT2701. Signed-off-by: James Liao --- .../bindings/arm/mediatek/mediatek,apmixedsys.txt | 1 +

Re: [PATCH v4 1/6] clk: hisilicon: add CRG driver for hi3519 soc

2016-01-04 Thread xuejiancheng
Hi Mike, Happy new year to you! Thank you for taking time to reply. On 2015/12/31 8:23, Michael Turquette wrote: > Hello Jiancheng Xue, > > Quoting Jiancheng Xue (2015-12-29 17:43:47) >> The CRG(Clock and Reset Generator) block provides clock >> and reset signals for other modules in

[PATCH v2 1/6] clk: mediatek: Refine the makefile to support multiple clock drivers

2016-01-04 Thread James Liao
Add a Kconfig to define clock configuration for each SoC, and modify the Makefile to build drivers that only selected in config. Signed-off-by: Shunli Wang Signed-off-by: James Liao --- drivers/clk/Kconfig | 1 +

[PATCH v2 0/6] Add clock support for Mediatek MT2701

2016-01-04 Thread James Liao
This patchset is based on 4.4-rc7, add clock and reset controller support for Mediatek MT2701. This patchset also refined makefile and Kconfig to support configurable multiple SoC clock support. changes since v1: - Document MT2701 compatible strings. James Liao (2): clk: mediatek: Refine the

[PATCH v2 3/6] clk: mediatek: Add dt-bindings for MT2701 clocks

2016-01-04 Thread James Liao
From: Shunli Wang Add MT2701 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao --- include/dt-bindings/clock/mt2701-clk.h

Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2016-01-04 Thread Russell King - ARM Linux
On Mon, Jan 04, 2016 at 03:27:57PM +0200, Tero Kristo wrote: > On 01/04/2016 12:21 PM, Geert Uytterhoeven wrote: > >FWIW, there are small loops with just a cpu_relax() in various clock drivers > >under drivers/clk/shmobile/. > > Just did a quick profiling round, and the clk_enable/disable delay

Re: [RFC 6/9] clk: ti: add support for omap4 module clocks

2016-01-04 Thread Tony Lindgren
* Russell King - ARM Linux [160104 06:43]: > On Mon, Jan 04, 2016 at 03:27:57PM +0200, Tero Kristo wrote: > > On 01/04/2016 12:21 PM, Geert Uytterhoeven wrote: > > >FWIW, there are small loops with just a cpu_relax() in various clock > > >drivers > > >under