Re: [PATCHv2 5/5] clk: samsung: exynos5410: Added clocks DPLL, EPLL, IPLL, and VPLL

2014-07-31 Thread Mike Turquette
Quoting Tomasz Figa (2014-07-31 15:17:29) > Humberto, > > [dropping few addresses from Cc as this topic is rather irrelevant for > them and adding Mike and Sylwester] > > On 31.07.2014 23:19, Humberto Naves wrote: > > Hi, > > > > On Thu, Jul 31, 2014 at 5:19 PM, Tomasz Figa wrote: > >> > >> I'm

Re: [PATCH 8/8] clk: tegra: Add EMC clock driver

2014-07-31 Thread Mike Turquette
Quoting Thierry Reding (2014-07-30 02:34:57) > On Tue, Jul 29, 2014 at 04:14:44PM -0600, Stephen Warren wrote: > > On 07/29/2014 02:19 PM, Mike Turquette wrote: > > >Quoting Mikko Perttunen (2014-07-29 01:47:35) > > >>On 22/07/14 19:57, Stephen Warren wrote: > &

[GIT PULL] clk: fixes for 3.16, part 2

2014-07-31 Thread Mike Turquette
The following changes since commit 64aa90f26c06e1cb2aacfb98a7d0eccfbd6c1a91: Linux 3.16-rc7 (2014-07-27 12:41:55 -0700) are available in the git repository at: git://git.linaro.org/people/mike.turquette/linux.git tags/clk-fixes-for-linus for you to fetch changes up to a74c52def9ab953c77956a

Re: [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration

2014-07-30 Thread Mike Turquette
Quoting Tero Kristo (2014-07-30 05:27:07) > On 07/30/2014 08:53 AM, Peter Ujfalusi wrote: > > On 07/29/2014 07:12 PM, Mike Turquette wrote: > >>> Oh yea, seems this got lost into the myriad of branches I have. I can push > >>> this on top of my for-v3.17/ti-clk-d

Re: linux-next: manual merge of the clk tree with the driver-core tree

2014-07-30 Thread Mike Turquette
Quoting Stephen Rothwell (2014-07-30 01:57:08) > Hi Mike, > > Today's linux-next merge of the clk tree got a conflict in > drivers/base/platform.c between commit 3d713e0e382e ("driver core: > platform: add device binding path 'driver_override'") from the > driver-core tree and commit 86be408bfbd8

Re: [PATCH 8/8] clk: tegra: Add EMC clock driver

2014-07-29 Thread Mike Turquette
Quoting Mikko Perttunen (2014-07-29 01:47:35) > On 22/07/14 19:57, Stephen Warren wrote: > > On 07/11/2014 08:18 AM, Mikko Perttunen wrote: > >> +static int emc_debug_rate_set(void *data, u64 rate) > >> +{ > >> +struct tegra_emc *tegra = data; > >> + > >> +return clk_set_rate(tegra->hw.clk,

Re: [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration

2014-07-29 Thread Mike Turquette
On Tue, Jul 29, 2014 at 1:23 AM, Tero Kristo wrote: > On 07/29/2014 09:27 AM, Mike Turquette wrote: >> >> Quoting Peter Ujfalusi (2014-07-14 03:10:28) >>> >>> On 05/06/2014 04:39 PM, Peter Ujfalusi wrote: >>>>>> >>>>>

Re: [PATCH 1/3] clk: exynos-audss: Keep the parent of mout_audss always enabled

2014-07-28 Thread Mike Turquette
Quoting Tushar Behera (2014-07-10 23:18:54) > On 06/13/2014 02:39 AM, Mike Turquette wrote: > > Quoting Tushar Behera (2014-06-12 00:29:23) > >> On Wed, Jun 11, 2014 at 10:20 PM, Mike Turquette > >> wrote: > >>> Quoting Tushar Behera (2014-06-10 22:32:17

Re: [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration

2014-07-28 Thread Mike Turquette
Quoting Peter Ujfalusi (2014-07-14 03:10:28) > On 05/06/2014 04:39 PM, Peter Ujfalusi wrote: > >>> Tero: can I have your ack for this patch or do you have further concerns? > >> > >> Yea looks good to me, except for the fact that there is some work on > >> getting > >> default rate/parent support

Re: [PATCH v3 00/15] Add Flexgen Clock support

2014-07-28 Thread Mike Turquette
Quoting Gabriel FERNANDEZ (2014-07-15 08:20:16) > Changes in v3: > - Change commit message > - Remove uncessary (void *) cast > - add a block diagram for flexgen clock binding documentation > > Changes in v2: > - use static const for clkgen_pll_data and stm_fs tables (from >Peter Griffin r

Re: [PATCH v3 06/15] drivers: clk: st: STiH407: Support for Flexgen Clocks

2014-07-28 Thread Mike Turquette
Quoting Gabriel FERNANDEZ (2014-07-15 08:20:22) > +static const char ** __init flexgen_get_parents(struct device_node *np, > + int *num_parents) > +{ > + const char **parents; > + int nparents, i; > + > + nparents = of_count_pha

Re: [GIT PULL] qcom clock changes for 3.17

2014-07-28 Thread Mike Turquette
Quoting Stephen Boyd (2014-07-28 10:57:02) > On 07/28, Kumar Gala wrote: > > > > On Jul 21, 2014, at 4:26 PM, Stephen Boyd wrote: > > > > > Hi Mike, > > > > > > The following changes since commit > > > a497c3ba1d97fc69c1e78e7b96435ba8c2cb42ee: > > > > > > Linux 3.16-rc2 (2014-06-21 19:02:54

Re: [PATCH v8 00/13] Add Maxim 77802 PMIC support

2014-07-25 Thread Mike Turquette
; [PATCH v8 06/13] clk: max77686: Convert to the generic max clock driver > [PATCH v8 07/13] clk: max77686: Improve Maxim 77686 PMIC clocks binding > [PATCH v8 08/13] clk: Add driver for Maxim 77802 PMIC clocks > [PATCH v8 09/13] clk: max77802: Add DT binding documentation For patches 4-

Re: [PATCH/RFC V8 1/1] clk: Support for clock parents and rates assigned from device tree

2014-07-25 Thread Mike Turquette
Quoting Sylwester Nawrocki (2014-07-03 10:25:53) > On 18/06/14 17:29, Sylwester Nawrocki wrote: > > This patch adds helper functions to configure clock parents and rates > > as specified through 'assigned-clock-parents', 'assigned-clock-rates' > > DT properties for a clock provider or clock consume

Re: [PATCH v2 1/2] clk: samsung: exynos4: Enable ARMCLK down feature

2014-07-23 Thread Mike Turquette
Quoting Krzysztof Kozlowski (2014-07-18 07:36:32) > Enable ARMCLK down feature on all Exynos4 SoCs. The frequency of > ARMCLK will be reduced upon entering idle mode (WFI or WFE). > > The feature behaves like very fast cpufreq ondemand governor. In idle > mode this reduces energy consumption on fu

[GIT PULL] clk: fixes for 3.16

2014-07-13 Thread Mike Turquette
from the clock tree description Himangi Saraogi (1): clk: sunxi: fix devm_ioremap_resource error detection code Julia Lawall (1): clk: ti: dra7: return error code in failure case Krzysztof Kozlowski (1): clk: s2mps11: Fix double free corruption during driver unbind Mike Turquette (2):

Re: [patch 0/2] clk: spear3xx: Make it actually work

2014-07-13 Thread Mike Turquette
Quoting Thomas Gleixner (2014-06-19 14:52:23) > This code is broken since commit 5df33a62c (SPEAr: Switch to common > clock framework). Sigh... > > The first patch fixes that issue and the second one makes the uarts1/2 > usable. Applied to clk-fixes. Regards, Mike > > Quality stuff that. > >

Re: [PATCH 00/13] Tegra124 CL-DVFS / DFLL clocksource, plus cpufreq

2014-07-11 Thread Mike Turquette
Quoting Tuomas Tynkkynen (2014-07-10 14:42:36) > This series implements the DFLL/CL-DVFS clock source for the fast CPU > cluster on Tegra124, and a cpufreq driver that uses the DFLL for > clocking the CPU. Most of this is based on Paul Walmsley's public patch > set from December 2013, which is avai

Re: [PATCH 00/14] cpufreq: cpu0: Extend support beyond CPU0, V2

2014-07-03 Thread Mike Turquette
Quoting Viresh Kumar (2014-07-02 19:44:04) > On 3 July 2014 06:54, Stephen Boyd wrote: > > I gave it a spin. It works so you can have my > > > > Tested-by: Stephen Boyd > > Thanks, all suggested improvements are made and pushed again with > your Tested-by.. > > > I'm still concerned about the p

RE: [PATCH v2 0/4] Add support for Exynos clock output configuration

2014-07-02 Thread Mike Turquette
Quoting Kukjin Kim (2014-06-25 03:36:51) > Tomasz Figa wrote: > > > Hi Tomasz, > > > On all Exynos SoCs there is a dedicated CLKOUT pin that allows many of > > internal SoC clocks to be output from the SoC. The hardware structure > > Yeah, because the CLKOUT pin is used for measure of the clock

Re: [PATCH v3] clk: define and export clk_debugs_add_file

2014-07-02 Thread Mike Turquette
Quoting Peter De Schrijver (2014-06-26 08:00:53) > Define and export a new function clk_debugs_add_file which adds a file > to a existing clock's debugfs directory. This can be used by clock > providers to add debugfs entries which are not related to a specific clock > type. Examples include the ab

Re: [PATCH v4 0/6] clk: sunxi: fixes, cleanups and A23 basic clocks

2014-07-02 Thread Mike Turquette
Quoting Chen-Yu Tsai (2014-06-26 08:55:38) > Hi everyone, > > This is v4 of the sun8i clock series, which adds basic clock > support for the A23 SoC. It is based on my initial sun8i bring > up series [1]. This series was split up from the original A23 > series [2]. Yet to come are more clocks, res

Re: [PATCH v2] clk: s2mps11: Fix clk_ops

2014-07-02 Thread Mike Turquette
Quoting Karol Wrona (2014-07-01 10:13:59) > s2mps11 clocks had registered callbacks for prepare ,unprepare and is_enabled. > During disabling unused clocks the lack of is_prepared caused that unused > s2mps11 clocks were not unprepared and stayed active. > > Regmap_read is cached so it can be call

Re: [PATCH 03/33] clk: at91: main: warn when the main crystal frequency is not set

2014-07-02 Thread Mike Turquette
Quoting Boris BREZILLON (2014-07-02 01:18:11) > On Tue, 1 Jul 2014 16:12:12 +0200 > Alexandre Belloni wrote: > > > When the main crystal frequency is not set, the main clock is > > approximated using the MAINF value in the CKGR_MCFR register. Warn > > the user in that case. > > > > Signed-off-b

Re: [PATCH v5 04/14] clk: max77686: Improve Maxim 77686 PMIC clocks binding

2014-07-02 Thread Mike Turquette
Quoting Javier Martinez Canillas (2014-07-02 03:17:54) > Hello Mike, > > On 07/01/2014 07:29 PM, Mike Turquette wrote: > > Quoting Javier Martinez Canillas (2014-06-26 11:15:36) > >> Like most clock drivers, the Maxim 77686 PMIC clock binding > >> follows the

Re: [PATCH] clk: sunxi: fix devm_ioremap_resource error detection code

2014-07-01 Thread Mike Turquette
Quoting Emilio López (2014-06-28 14:38:26) > Hi, > > El 28/06/14 14:58, Boris BREZILLON escribió: > > Hello, > > > > On 28/06/2014 19:23, Himangi Saraogi wrote: > >> devm_ioremap_resource returns an ERR_PTR value, not NULL, on failure. > >> > >> A simplified version of the semantic match that find

Re: [PATCH 2/2] MIPS: Alchemy: common clock framework integration

2014-07-01 Thread Mike Turquette
Quoting Manuel Lauss (2014-06-29 09:57:35) > Expose chip-internal configurable clocks to the common clk framework, > and fix a few drivers to take advantage of it. Thanks for the patch series! Both patches cover a lot of ground, but I'll focus on #2. It would be best to split the driver changes ou

Re: [PATCH v2] clk: s2mps11: Fix double free corruption during driver unbind

2014-07-01 Thread Mike Turquette
Quoting Krzysztof Kozlowski (2014-06-27 05:21:10) > After unbinding the driver memory was corrupted by double free of > clk_lookup structure. This lead to OOPS when re-binding the driver > again. > > The driver allocated memory for 'clk_lookup' with devm_kzalloc. During > driver removal this memor

Re: [RESEND 0/2] clk: Support for Palmas clk32kg and clk32kgaudio clocks

2014-07-01 Thread Mike Turquette
Quoting Peter Ujfalusi (2014-06-26 23:01:09) > Hi Mike, > > This is a resend of the v2 version of the palmas clock driver which seamingly > missed the 3.16 merge window. I have added Nishanth's Reviewed-by tag to the > patches. Thanks for the resend. Applied to clk-next. Regards, Mike > > Chan

Re: [RESEND 2/2] clk: Add driver for Palmas clk32kg and clk32kgaudio clocks

2014-07-01 Thread Mike Turquette
Quoting Peter Ujfalusi (2014-06-29 22:56:55) > Hi Javier, > > On 06/27/2014 09:23 PM, Javier Martinez Canillas wrote: > > Hello Peter, > > > > On Fri, Jun 27, 2014 at 8:01 AM, Peter Ujfalusi > > wrote: > >> Palmas class of devices can provide 32K clock(s) to be used by other > >> devices > >>

Re: [PATCH] clk: Add tracepoints for hardware operations

2014-07-01 Thread Mike Turquette
Quoting Stephen Boyd (2014-06-30 18:07:49) > On 06/30/14 17:52, Steven Rostedt wrote: > > On Mon, 30 Jun 2014 16:56:39 -0700 > > Stephen Boyd wrote: > > > >> @@ -483,10 +486,12 @@ static void clk_unprepare_unused_subtree(struct clk > >> *clk) > >> return; > >> > >> if (__clk_i

Re: [PATCH v2 1/1] clk: Fix build warnings

2014-07-01 Thread Mike Turquette
Quoting Sachin Kamat (2014-06-30 23:26:34) > ‘all_lists’ and ‘orphan_list’ is accessed only when DEBUG_FS is defined. > Thus, make their compilation conditional to fix the below warnings introduced > by commit 27b8d5f723 ("clk: flatten clk tree in debugfs"): > drivers/clk/clk.c:40:27: warning: ‘all

Re: [PATCH 2/2] cpufreq: cpu0: Extend support beyond CPU0

2014-07-01 Thread Mike Turquette
Quoting Viresh Kumar (2014-07-01 04:14:04) > On 1 July 2014 00:03, Rob Herring wrote: > >> What about comparing "clocks" property in cpu DT nodes? > > > > What if a different clock is selected for some reason. > > I don't know why that will happen for CPUs sharing clock line. > > > I think a clo

Re: [PATCH v5 03/14] clk: max77686: Add DT include for MAX77686 PMIC clock

2014-07-01 Thread Mike Turquette
Quoting Javier Martinez Canillas (2014-06-26 11:15:35) > This patch adds a dt-binding include for Maxim 77686 > PMIC clock IDs that can be to be shared between the > clk-max77686 clock driver and DeviceTree source files. > > Signed-off-by: Javier Martinez Canillas > Reviewed-by: Krzysztof Kozlows

Re: [PATCH v5 04/14] clk: max77686: Improve Maxim 77686 PMIC clocks binding

2014-07-01 Thread Mike Turquette
Quoting Javier Martinez Canillas (2014-06-26 11:15:36) > Like most clock drivers, the Maxim 77686 PMIC clock binding > follows the convention that the "#clock-cells" property is > used to specify the number of cells in a clock provider. > > But the binding document is not clear enough that it shal

Re: [PATCH v5 05/14] clk: Add generic driver for Maxim PMIC clocks

2014-07-01 Thread Mike Turquette
Quoting Yadwinder Singh Brar (2014-06-29 21:01:36) > Hi Javier, > > On Thu, Jun 26, 2014 at 11:45 PM, Javier Martinez Canillas > wrote: > > Maxim Integrated Power Management ICs are very similar with > > regard to their clock outputs. Most of the clock drivers for > > these chips are duplicating

Re: [PATCH 2/2] cpufreq: cpu0: Extend support beyond CPU0

2014-06-26 Thread Mike Turquette
Quoting Stephen Boyd (2014-06-26 17:06:00) > Finally, checking for equivalent pointers from clk_get() will work now, Please don't do that. Even though it works for the current implementation, comparing those pointers from a driver violates how clkdev is supposed to work. The pointer returned by cl

Re: [PATCH] clk: define and export __clk_get_debug for providers

2014-06-26 Thread Mike Turquette
On Thu, Jun 26, 2014 at 12:37 AM, Tomeu Vizoso wrote: > On 25 June 2014 20:23, Mike Turquette wrote: >> >> Peter, >> >> Just FYI, I'm trying to reverse the trend of prepending double >> underscores for functions that are used by clock providers. That stuff

Re: [PATCH RESEND] clk: flatten clk tree in debugfs

2014-06-26 Thread Mike Turquette
Quoting Peter De Schrijver (2014-06-26 09:39:06) > On Fri, Jun 13, 2014 at 10:02:39AM +0200, Peter De Schrijver wrote: > > On Fri, May 30, 2014 at 05:03:57PM +0200, Peter De Schrijver wrote: > > > This patch flattens the clk tree in CCF debugfs. Instead of representing > > > the > > > clocks and t

Re: [PATCH] clk: define and export __clk_get_debug for providers

2014-06-25 Thread Mike Turquette
Quoting Arnd Bergmann (2014-06-25 11:07:37) > On Wednesday 25 June 2014 19:26:31 Peter De Schrijver wrote: > > Define and export a new function __clk_get_debug which returns the debugfs > > directory entry pointer. This can be used by clock providers to add debugfs > > entries which are not related

Re: [PATCH] clkdev: Don't print errors on probe defer

2014-06-17 Thread Mike Turquette
Quoting Stephen Boyd (2014-06-13 16:36:31) > This error message can spam the logs if you have lots of probe > deferals due to missing clocks. Just silence the error in this > case because the driver should try again later. > > Signed-off-by: Stephen Boyd Looks OK to me. Russell? Regards, Mike

[GIT PULL] clk: changes for 3.16, part 2

2014-06-15 Thread Mike Turquette
of its own clk: sunxi: Rework clock protection code clk: sun6i: Protect CPU clock clk: sun6i: Protect SDRAM gating bit Mike Turquette (2): Merge branch 'for-v3.16/ti-clk-drv' of github.com:t-kristo/linux-pm into clk-next Merge tag 'sunxi-clk-for-3.16-2&#

Re: [PATCH 1/3] clk: exynos-audss: Keep the parent of mout_audss always enabled

2014-06-11 Thread Mike Turquette
Quoting Tushar Behera (2014-06-10 22:32:17) > When the output clock of AUDSS mux is disabled, we are getting kernel > oops while doing a clk_get() on other clocks provided by AUDSS. Though > user manual doesn't specify this dependency, we came across this issue > while disabling the parent of AUDSS

Re: [GIT PULL] MMC updates for 3.16-rc1

2014-06-10 Thread Mike Turquette
Quoting Linus Torvalds (2014-06-10 14:50:59) > On Tue, Jun 10, 2014 at 12:51 PM, Chris Ball wrote: > > > > These patches have been tested in > > linux-next, and there are three minor conflicts which I've resolved on > > my mmc-updates-for-3.16-rc1-merged branch. > > Your merged branch is incorre

Re: [PATCH v3] clk: exynos5420: Remove aclk66_peric from the clock tree description

2014-06-06 Thread Mike Turquette
Quoting Tomasz Figa (2014-06-05 15:26:31) > On 05.06.2014 22:35, Doug Anderson wrote: > > The "aclk66_peric" clock is a gate clock with a whole bunch of gates > > underneath it. This big gate isn't very useful to include in our > > clock tree. If any of the children need to be turned on then the

[GIT PULL] clk: changes for 3.16

2014-06-06 Thread Mike Turquette
clk: impd1: add pclk clocks Maxime COQUELIN (3): clk: divider: Add round to closest divider clk: divider: Optimize clk_divider_bestdiv loop clk: divider: Fix table round up function Michal Simek (1): clk: si570: Fix email address specifiction Mike Turquette (10): Merg

Re: [PATCH v3] clk: exynos5420: Remove aclk66_peric from the clock tree description

2014-06-05 Thread Mike Turquette
Quoting Doug Anderson (2014-06-05 13:35:14) > The "aclk66_peric" clock is a gate clock with a whole bunch of gates > underneath it. This big gate isn't very useful to include in our > clock tree. If any of the children need to be turned on then the big > gate will need to be on anyway. ...and th

Re: [PATCH] rtc: hym8563: add optional clock-output-names property

2014-06-02 Thread Mike Turquette
ot a deal breaker. Reviewed-by: Mike Turquette Regards, Mike > --- > Documentation/devicetree/bindings/rtc/haoyu,hym8563.txt | 3 +++ > drivers/rtc/rtc-hym8563.c | 3 +++ > 2 files changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/

Re: [PATCH v4 1/7] clk: kona: allow nested ccu_write_enable() requests

2014-06-02 Thread Mike Turquette
Quoting Alex Elder (2014-05-30 20:46:46) > On 05/30/2014 06:28 PM, Mike Turquette wrote: > > Quoting Alex Elder (2014-05-30 13:53:02) > >> Use a counter rather than a Boolean to track whether write access to > >> a CCU has been enabled or not. This will allow more than

Re: [PATCH] clk: versatile: free icst on error return

2014-05-30 Thread Mike Turquette
Quoting Colin King (2014-04-12 10:59:14) > From: Colin Ian King > > commit a183da63 introduced a new error return path that does > not kfree icst if the kmemdup of desc->params fails. > > Signed-off-by: Colin Ian King Applied to clk-next. Thanks, Mike > --- > drivers/clk/versatile/clk-icst.

Re: [PATCH v4 3/7] clk: kona: don't init clocks at startup time

2014-05-30 Thread Mike Turquette
Quoting Alex Elder (2014-05-30 13:53:04) > +static int kona_clk_prepare(struct clk_hw *hw) > { > + struct kona_clk *bcm_clk = to_kona_clk(hw); > + struct ccu_data *ccu = bcm_clk->ccu; > + unsigned long flags; > + int ret = 0; > + > + flags = ccu_lock(ccu); > + _

Re: [PATCH v4 1/7] clk: kona: allow nested ccu_write_enable() requests

2014-05-30 Thread Mike Turquette
Quoting Alex Elder (2014-05-30 13:53:02) > Use a counter rather than a Boolean to track whether write access to > a CCU has been enabled or not. This will allow more than one of > these requests to be nested. > > Note that __ccu_write_enable() and __ccu_write_disable() calls all > come in pairs,

Re: [RFC PATCH 3/3] clk: tegra: Implement Tegra124 shared/cbus clks

2014-05-29 Thread Mike Turquette
Quoting Nishanth Menon (2014-05-29 16:22:45) > On 05/26/2014 08:07 AM, Thierry Reding wrote: > > On Wed, May 14, 2014 at 12:35:18PM -0700, Mike Turquette wrote: > >> Quoting Thierry Reding (2014-05-14 07:27:40) > > [...] > >>> As for shared clocks I'm only

Re: [PATCH] clk: exynos5420: Keep aclk66_peric enabled during boot

2014-05-29 Thread Mike Turquette
Quoting Doug Anderson (2014-05-29 14:21:36) > Right now if you've got earlyprintk enabled on exynos5420-peach-pit > then you'll get a hang on boot. Here's why: > > 1. The i2c-s3c2410 driver will probe at subsys_initcall. It will >enable its clock and disable it. This is the clock "i2c2". >

Re: [PATCH v2 2/5] clk: bcm281xx: implement prerequisite clocks

2014-05-29 Thread Mike Turquette
Quoting Alex Elder (2014-05-29 09:53:50) > On 05/29/2014 11:35 AM, Mike Turquette wrote: > > Quoting Alex Elder (2014-05-29 06:26:15) > >> On 05/23/2014 07:53 PM, Mike Turquette wrote: > >>> The above seems like a lot effort to go to. Why not skip all of thi

Re: [PATCH v2 2/5] clk: bcm281xx: implement prerequisite clocks

2014-05-29 Thread Mike Turquette
Quoting Alex Elder (2014-05-29 06:26:15) > On 05/23/2014 07:53 PM, Mike Turquette wrote: > > The above seems like a lot effort to go to. Why not skip all of this and > > just implement the prerequisite logic in the .enable & .disable > > callbacks? E.g. your kona clk .e

[GIT PULL] clk: fixes for 3.15, part 2

2014-05-29 Thread Mike Turquette
t platform. Maxime COQUELIN (1): clk: divider: Fix table round up function Mike Turquette (1): Merge tag 'clk-tegra-fixes-3.15' of git://nv-tegra.nvidia.com/user/pdeschrijver/linux into clk-fixes Thierry Reding (3): clk: tegra: Fix PLLE programming clk: tegr

Re: [PATCH v2 00/10] Marvell Berlin full clock support

2014-05-28 Thread Mike Turquette
mode 100644 drivers/clk/berlin/berlin2-pll.c > create mode 100644 drivers/clk/berlin/berlin2-pll.h > create mode 100644 drivers/clk/berlin/bg2.c > create mode 100644 drivers/clk/berlin/bg2q.c > create mode 100644 drivers/clk/berlin/common.h > create mode 100644 include/dt-bin

Re: [PATCH] CLK: TI: DRA7: return error code in failure case

2014-05-28 Thread Mike Turquette
Quoting Tero Kristo (2014-05-19 05:23:10) > On 05/19/2014 02:25 PM, Julia Lawall wrote: > > From: Julia Lawall > > > > Add a returned error code in the MAX_APLL_WAIT_TRIES case. Remove the > > updating of the return variable r to 0 if MAX_APLL_WAIT_TRIES is not yet > > reached, because r is alrea

Re: [RFC PATCH] clk: flatten clk tree in debugfs

2014-05-28 Thread Mike Turquette
Quoting Saravana Kannan (2014-05-28 10:47:46) > On 05/26/2014 04:14 AM, Peter De Schrijver wrote: > > On Sat, May 24, 2014 at 12:24:32AM +0200, Saravana Kannan wrote: > >> On 05/23/2014 03:59 AM, Peter De Schrijver wrote: > >>> This patch flattens the clk tree in CCF debugfs. Instead of representin

RE: [PATCH v11 2/3] clk: exynos5410: register clocks using common clock framework

2014-05-28 Thread Mike Turquette
Quoting Kukjin Kim (2014-05-27 21:49:49) > Mike Turquette wrote: > > > > Quoting Tarek Dakhran (2014-05-25 20:23:32) > > > The EXYNOS5410 clocks are statically listed and registered > > > using the Samsung specific common clock helper functions. > &g

Re: [PATCH] clk: divider: Fix overflow in clk_divider_bestdiv

2014-05-27 Thread Mike Turquette
Quoting Tomasz Figa (2014-05-07 09:24:10) > Commit c686078 ("clk: divider: Add round to closest divider") introduced > a helper function to check whether given divisor is the best one instead > of direct check. However due to int type used instead of unsigned long > for passing calculated rates to

Re: [RFC PATCH 2/5] clk: Introduce 'clk_round_rate_nearest()'

2014-05-27 Thread Mike Turquette
Quoting Rafael J. Wysocki (2014-05-26 04:22:32) > On Monday, May 26, 2014 11:59:09 AM Viresh Kumar wrote: > > On 23 May 2014 21:44, Sören Brinkmann wrote: > > > Viresh: Could you imagine something similar for cpufreq? You suggested > > > migrating to Hz resolution. I guess that would ideally mean

Re: [PATCH 03/17] phy: ti-pipe3: add external clock support for PCIe PHY

2014-05-27 Thread Mike Turquette
Quoting Nishanth Menon (2014-05-15 05:33:13) > On 05/15/2014 07:18 AM, Kishon Vijay Abraham I wrote: > > Hi, > > > > On Thursday 15 May 2014 05:42 PM, Nishanth Menon wrote: > >> On Thu, May 15, 2014 at 6:59 AM, Kishon Vijay Abraham I > >> wrote: > >>> Hi Nishant, > >>> > >>> On Thursday 15 May 2

Re: [PATCH] MAINTAINERS: add AT91 Clock Support entry

2014-05-27 Thread Mike Turquette
Quoting Boris BREZILLON (2014-05-27 04:39:28) > Signed-off-by: Boris BREZILLON Applied to clk-next. Regards, Mike > --- > MAINTAINERS | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 1066264..40c5580 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS

Re: [PATCH v2] clk: bcm/kona: implement determine_rate()

2014-05-27 Thread Mike Turquette
Quoting Alex Elder (2014-05-27 09:56:56) > Implement the clk->determine_rate method for Broadcom Kona peripheral > clocks. This allows a peripheral clock to be re-parented in order to > satisfy a rate change request. This takes the place of the previous > kona_peri_clk_round_rate() functionality,

Re: [PATCH v11 2/3] clk: exynos5410: register clocks using common clock framework

2014-05-27 Thread Mike Turquette
Quoting Tarek Dakhran (2014-05-25 20:23:32) > The EXYNOS5410 clocks are statically listed and registered > using the Samsung specific common clock helper functions. > > Signed-off-by: Tarek Dakhran > Signed-off-by: Vyacheslav Tyrtov > --- > .../devicetree/bindings/clock/exynos5410-clock.txt |

Re: [PATCH] clk: bcm/kona: implement determine_rate()

2014-05-23 Thread Mike Turquette
Quoting Alex Elder (2014-05-23 16:24:31) > On 05/23/2014 06:18 PM, Mike Turquette wrote: > > Quoting Alex Elder (2014-05-20 06:24:57) > >> Implement the clk->determine_rate method for Broadcom Kona peripheral > >> clocks. This allows a peripheral clock to be re-paren

Re: [PATCH v2 2/5] clk: bcm281xx: implement prerequisite clocks

2014-05-23 Thread Mike Turquette
Quoting Alex Elder (2014-05-20 05:52:39) > @@ -743,11 +746,16 @@ struct clk *kona_clk_setup(struct kona_clk *bcm_clk) > clk = clk_register(NULL, &bcm_clk->hw); > if (IS_ERR(clk)) { > pr_err("%s: error registering clock %s (%ld)\n", __func__, > -

Re: [PATCH v2 1/5] clk: bcm281xx: add an initialized flag

2014-05-23 Thread Mike Turquette
Quoting Alex Elder (2014-05-20 05:52:38) > Add a flag that tracks whether a clock has already been initialized. > This will be used by the next patch to avoid initializing a clock > more than once when it's listed as a prerequisite. > > Signed-off-by: Alex Elder > --- > drivers/clk/bcm/clk-kona.

Re: [PATCH] clk: bcm/kona: implement determine_rate()

2014-05-23 Thread Mike Turquette
Quoting Alex Elder (2014-05-20 06:24:57) > Implement the clk->determine_rate method for Broadcom Kona peripheral > clocks. This allows a peripheral clock to be re-parented in order to > satisfy a rate change request. This takes the place of the previous > kona_peri_clk_round_rate() functionality,

Re: [PATCH] clk: qcom: Fix blsp2_ahb_clk register offset

2014-05-23 Thread Mike Turquette
Quoting Georgi Djakov (2014-05-20 09:50:54) > The address of the blsp2_ahb_clk register is incorrect. Fix it. > > Signed-off-by: Georgi Djakov Applied to clk-next. Regards, Mike > --- > drivers/clk/qcom/gcc-msm8974.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a

Re: [PATCH v4 0/3] clk: s2mps11: Fixes and add support for S2MPS14 clocks

2014-05-23 Thread Mike Turquette
Quoting Krzysztof Kozlowski (2014-05-21 04:22:58) > Hi, > > > This is actually a resend of previous patches, rebased on latest > 3.15-rc5. There are no changes, beside rebasing. > > The first two fixes were posted previously as separate patches and they > didn't get review [1]. I am attaching th

Re: [PATCH] clk: st: Fix memory leak

2014-05-23 Thread Mike Turquette
Quoting Valentin Ilie (2014-04-22 06:15:54) > When it fails to allocate div, gate should be free'd before return > > Signed-off-by: Valentin Ilie Taken into clk-fixes. Regards, Mike > --- > drivers/clk/st/clkgen-pll.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git

Re: [PATCH] clk: divider: Fix table round up function

2014-05-23 Thread Mike Turquette
eturns INT_MAX. > > Reported-by: Fabio Estevam > Reported-by: Shawn Guo > Tested-by: Fabio Estevam > Cc: Mike Turquette > Signed-off-by: Maxime Coquelin Pulled into clk-fixes for -rc7. Regards, Mike > --- > drivers/clk/clk-divider.c | 2 +- > 1 file changed, 1

Re: [PATCH 0/3] ARM: OMAP5+: Support Duty Cycle Correction(DCC)

2014-05-23 Thread Mike Turquette
Quoting Nishanth Menon (2014-05-16 03:45:57) > Hi, > > This patch series has been carried over in vendor kernel for quiet > few years now. > > Unfortunately, it was very recently re-discovered and upstream kernel > is noticed to be broken for OMAP5 1.5GHz - at least we are operating > DPLL at fre

Re: [Patch v7 2/7] clock: keystone-pllctrl: add bindings for keystone pll controller

2014-05-23 Thread Mike Turquette
ions, gating, and synchronization. > > Reviewed-by: Arnd Bergmann > Signed-off-by: Ivan Khoronzhuk Acked-by: Mike Turquette Regards, Mike > --- > .../bindings/clock/ti-keystone-pllctrl.txt | 20 > > 1 file changed, 20 insertions(+) >

Re: [PATCH v10 2/3] clk: exynos5410: register clocks using common clock framework

2014-05-23 Thread Mike Turquette
Quoting Tarek Dakhran (2014-05-23 03:35:42) > The EXYNOS5410 clocks are statically listed and registered > using the Samsung specific common clock helper functions. > > Signed-off-by: Tarek Dakhran > Signed-off-by: Vyacheslav Tyrtov Quick glance over it. Looks good to me. Regards, Mike > ---

Re: [PATCH/RFC V6 2/2] clk: Add handling of clk parent and rate assigned from DT

2014-05-22 Thread Mike Turquette
Quoting Sylwester Nawrocki (2014-05-19 10:22:51) > diff --git a/Documentation/devicetree/bindings/clock/clock-bindings.txt > b/Documentation/devicetree/bindings/clock/clock-bindings.txt > index 700e7aa..bee649b 100644 > --- a/Documentation/devicetree/bindings/clock/clock-bindings.txt > +++ b/Docum

Re: [PATCH RFC v5 2/2] clk: Add handling of clk parent and rate assigned from DT

2014-05-22 Thread Mike Turquette
Quoting Sylwester Nawrocki (2014-04-11 05:25:49) > >> +==Assigned clock parents and rates== > >> + > >> +Some platforms require static initial configuration of parts of the clocks > >> +controller. Such a configuration can be specified in a clock consumer node > >> +through clock-parents and clock-

Re: [RFC PATCH 2/5] clk: Introduce 'clk_round_rate_nearest()'

2014-05-22 Thread Mike Turquette
Quoting Sören Brinkmann (2014-05-22 13:32:09) > On Thu, 2014-05-22 at 08:20PM +0200, Uwe Kleine-König wrote: > > Hello Sören, > > > > On Thu, May 22, 2014 at 11:03:00AM -0700, Sören Brinkmann wrote: > > > On Wed, 2014-05-21 at 01:33PM -0700, Mike Turquette wrote: &g

Re: [PATCH] clk: impd1: add pclk clocks

2014-05-22 Thread Mike Turquette
Quoting Linus Walleij (2014-04-15 01:29:45) > The IM-PD1 PrimeCells all have pclk assignments though this clock > cannot be controlled, and we need to provide this as a dummy > clock for the PL061 GPIO driver to probe, so let's assign it to > all the cells on the board. >

Re: [RFC PATCH 2/5] clk: Introduce 'clk_round_rate_nearest()'

2014-05-21 Thread Mike Turquette
Quoting Uwe Kleine-König (2014-05-21 11:23:08) > Hello Sören, > > On Wed, May 21, 2014 at 08:58:10AM -0700, Sören Brinkmann wrote: > > On Wed, 2014-05-21 at 09:34AM +0200, Uwe Kleine-König wrote: > > > On Tue, May 20, 2014 at 02:48:20PM -0700, Sören Brinkmann wrote: > > > > On Tue, 2014-05-20 at 1

Re: [PATCH v2 3/4] clk: ti: Driver for DRA7 ATL (Audio Tracking Logic)

2014-05-20 Thread Mike Turquette
Quoting Peter Ujfalusi (2014-05-07 03:20:47) > Audio Tracking Logic is designed to be used by HD Radio applications to > synchronize the audio output clocks to the baseband clock. ATL can be also > used to track errors between two reference clocks (BWS, AWS) and generate a > modulated > clock outp

[GIT PULL] clk: fixes for 3.15

2014-05-18 Thread Mike Turquette
: clk-mstp: change to using clock-indices Dinh Nguyen (1): clk: socfpga: fix clock driver for 3.15 Maxime COQUELIN (1): clk: divider: Fix best div calculation for power-of-two and table dividers Mike Turquette (1): Merge tag 'socfpga-clk-fix-for-3.15' of git://git.r

Re: [PATCH RFC 3/4] clk: samsung: Add driver to control CLKOUT line on Exynos SoCs

2014-05-16 Thread Mike Turquette
Quoting Tomasz Figa (2014-05-15 10:32:30) > This patch introduces a driver that handles configuration of CLKOUT pin > of Exynos SoCs that can be used to output certain clocks from inside of > the SoC to a dedicated output pin. > > Signed-off-by: Tomasz Figa Overall implementation looks good to m

Re: [RFC PATCH 3/3] clk: tegra: Implement Tegra124 shared/cbus clks

2014-05-16 Thread Mike Turquette
Quoting Stephen Warren (2014-05-15 13:20:21) > On 05/15/2014 04:52 AM, Peter De Schrijver wrote: > > On Wed, May 14, 2014 at 04:27:40PM +0200, Thierry Reding wrote: > >> * PGP Signed by an unknown key > >> > >> On Tue, May 13, 2014 at 12:09:49PM -0600, Stephen Warren wrote: > >>> On 05/13/2014 08:0

Re: [RFC] Linux common clock framework: device with many clocks

2014-05-16 Thread Mike Turquette
clocks > in the DT is completely separate matter from the management of said > clocks in any given driver. > > If you want a helpful abstraction for combining clocks for management > purposes you'd be better off talking to Mike Turquette (CC'd), as he's > in charge of

Re: [PATCHv2 3/4] clk: new basic clk type for fractional divider

2014-05-15 Thread Mike Turquette
Quoting Heikki Krogerus (2014-05-15 06:40:25) > Fractional divider clocks are fairly common. This adds basic > type for them. > > Signed-off-by: Heikki Krogerus Taken into clk-next. Just FYI, there was some talk at Embedded Linux Conference on providing a better abstraction layer for some of th

Re: [PATCH RESEND] Documentation: clock: fixed-clock: Remove unsupported 'gpios' property

2014-05-14 Thread Mike Turquette
Quoting Fabio Estevam (2014-05-08 20:01:50) > From: Fabio Estevam > > Remove the 'gpios' property from the documentation as this is something that > the > current fixed clock driver does not handle. > > Signed-off-by: Fabio Estevam Good catch. Taken into clk-next. Regards, Mike > --- > Doc

Re: [PATCH] clk/versatile: export symbols for impd1

2014-05-14 Thread Mike Turquette
Quoting Arnd Bergmann (2014-05-08 07:56:16) > The impd1 code on mach-integrator can be a loadable module, > so we have to export icst_clk_register, integrator_impd1_clk_init > and integrator_impd1_clk_exit. > > Signed-off-by: Arnd Bergmann > Cc: Mike Turquette > Cc: Linus

Re: linux-next: manual merge of the clk tree with the renesas tree

2014-05-14 Thread Mike Turquette
Quoting Stephen Rothwell (2014-05-14 23:11:21) > Hi Mike, > > Today's linux-next merge of the clk tree got a conflict in > Documentation/devicetree/bindings/clock/renesas,cpg-mstp-clocks.txt > between commit b557deadc5cc ("ARM: shmobile: r7s72100: document MSTP > clock support") from the renesas t

Re: [PATCH v3 5/7] clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support

2014-05-14 Thread Mike Turquette
Quoting Boris BREZILLON (2014-05-14 00:30:59) > Hello Mike, > > On 14/05/2014 02:51, Mike Turquette wrote: > > Quoting Boris BREZILLON (2014-05-09 04:11:49) > >> +struct clk_ops ar100_ops = { > >> + .recalc_rate = ar100_recalc_rate, > >> +

Re: [PATCH 2/8] clk: berlin: add clock binding docs for Marvell Berlin2 SoCs

2014-05-14 Thread Mike Turquette
Quoting Sebastian Hesselbarth (2014-05-11 13:24:35) > This adds mandatory device tree binding documentation for the clock related > IP found on Marvell Berlin2 (BG2, BG2CD, and BG2Q) SoCs. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Mike Turquette > Cc: Rob Herr

Re: [PATCH v3 2/6] clk: Add clock driver for AXM55xx SoC

2014-05-14 Thread Mike Turquette
Quoting Anders Berg (2014-05-14 11:37:57) > +Example: > + > + clk_ref0: clk_ref0 { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <12500>; > + }; Hi Anders, The driver looks good. As for the DT binding, I am

Re: [RFC PATCH 3/3] clk: tegra: Implement Tegra124 shared/cbus clks

2014-05-14 Thread Mike Turquette
Quoting Thierry Reding (2014-05-14 07:27:40) > On Tue, May 13, 2014 at 12:09:49PM -0600, Stephen Warren wrote: > > On 05/13/2014 08:06 AM, Peter De Schrijver wrote: > > > Add shared and cbus clocks to the Tegra124 clock implementation. > > > > > diff --git a/include/dt-bindings/clock/tegra124-car.

Re: [PATCH v3 5/7] clk: sunxi: add PRCM (Power/Reset/Clock Management) clks support

2014-05-13 Thread Mike Turquette
Quoting Boris BREZILLON (2014-05-09 04:11:49) > +struct clk_ops ar100_ops = { > + .recalc_rate = ar100_recalc_rate, > + .determine_rate = ar100_determine_rate, > + .set_parent = ar100_set_parent, > + .get_parent = ar100_get_parent, > + .set_rate = ar100_set_rate, > +};

Re: [PATCH 1/2] clk: of: helper for determining flags properties

2014-05-13 Thread Mike Turquette
Quoting Sebastian Hesselbarth (2014-05-13 08:11:55) > On 05/13/2014 02:20 PM, Mark Rutland wrote: > > On Tue, May 13, 2014 at 12:57:32PM +0100, Gabriel FERNANDEZ wrote: > >> The patch provides a helper to get flags properties of > >> a clock node. > >> > >> Signed-off-by: Gabriel Fernandez > >> --

Re: [PATCH 1/8] clk: add helper for unique DT clock names

2014-05-13 Thread Mike Turquette
roperty or a magic number instead. This is basically the same > we already do for proper devices and may vanish as soon as there is some > (early) device support for clocks available. > > Signed-off-by: Sebastian Hesselbarth > --- > Cc: Mike Turquette > Cc: Grant Likely &

Re: [PATCH v3 1/8] clk: sunxi: Implement A31 USB clock

2014-05-12 Thread Mike Turquette
s de Goede Acked-by: Mike Turquette > --- > drivers/clk/sunxi/clk-sunxi.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c > index bd7dc733c1ca..d9bab75f128b 100644 > --- a/drivers/clk/sunxi

<    1   2   3   4   5   6   7   >