Re: [PATCH v3 1/5] spi: introduce mmap read support for spi flash devices

2015-11-13 Thread Mike Looijmans
nice DMA controllers) one could go one step further and implement a generic DMA-through-mmap access to QSPI flash. Mike. Kind regards, Mike Looijmans System Expert TOPIC Embedded Products Eindhovenseweg 32-C, NL-5683 KH Best Postbus 440, NL-5680 AK Best Telefoon: +31 (0) 499 33 69 79 Telefa

Re: AM335x OMAP2 common clock external fixed-clock registration

2015-04-15 Thread Mike Turquette
clock enable_cnt prepare_cntrate > accuracy phase > > ref27002700 > 0 0 > ... > &g

Re: [PATCHv3 08/35] clk: ti: fix ti_clk_get_reg_addr error handling

2015-03-06 Thread Mike Turquette
l fail. Thus, change the API to return a > ERR_PTR value in an error case, and change all the users of this API to > check against IS_ERR instead. > > Signed-off-by: Tero Kristo > Cc: Michael Turquette Looks good to me. Regards, Mike > --- > drivers/clk/ti/apll.c |5 +

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-19 Thread Mike Turquette
r has to handle an error from > the second clk_get() call as meaning "no external clock > specified". Let's use that logic even with clk lookups to > simplify the code and remove the struct clk pointer comparisons > which may not work in the future when clk_get() returns un

Re: [PATCH 00/11] ARM: OMAP3: legacy clock data move under clk driver

2015-02-03 Thread Mike Turquette
On Tue, Feb 3, 2015 at 11:04 AM, Tony Lindgren wrote: > * Arnd Bergmann [150203 09:03]: >> On Thursday 08 January 2015, Tony Lindgren wrote: >> >> > Great, hopefully this will finally allow Mike to make the >> > generic struct clk private to drivers/clk :) >&g

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Mike Turquette
we don't currently > have and I would wonder why clock consumers even care to compare such > pointers in the first place. Ack. Is there precedent for a "Don't do that" kind of response? Regards, Mike > > -- > Qualcomm Innovation Center, Inc. is a m

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Mike Turquette
Quoting Tony Lindgren (2015-02-02 12:44:02) > * Tero Kristo [150202 11:35]: > > On 02/01/2015 11:24 PM, Mike Turquette wrote: > > >Quoting Tomeu Vizoso (2015-01-23 03:03:30) > > > > > >AFAICT this doesn't break anything, but booting on OMAP3+ results in

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Mike Turquette
Quoting Tero Kristo (2015-02-02 11:32:01) > On 02/01/2015 11:24 PM, Mike Turquette wrote: > > Quoting Tomeu Vizoso (2015-01-23 03:03:30) > >> Moves clock state to struct clk_core, but takes care to change as little > >> API as > >> possible. > >> >

Re: [PATCH v13 4/6] clk: Add rate constraints to clocks

2015-02-02 Thread Mike Turquette
Quoting Tony Lindgren (2015-02-02 08:12:37) > * Geert Uytterhoeven [150202 00:03]: > > On Sun, Feb 1, 2015 at 11:18 PM, Mike Turquette > > wrote: > > > Quoting Tomeu Vizoso (2015-01-31 10:36:22) > > >> On 31 January 2015 at 02:31, Stephen Boyd wrote: &

Re: Clock Regression in next-20150130 caused by cb75a8fcd14e

2015-02-01 Thread Mike Turquette
raints patch (with a separate email thread). Regards, Mike > > Regards, > > Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v13 4/6] clk: Add rate constraints to clocks

2015-02-01 Thread Mike Turquette
Quoting Tomeu Vizoso (2015-01-31 10:36:22) > On 31 January 2015 at 02:31, Stephen Boyd wrote: > > On 01/29, Stephen Boyd wrote: > >> On 01/29/15 05:31, Geert Uytterhoeven wrote: > >> > Hi Tomeu, Mike, > >> > > >> > On Fri, Jan 23, 2015

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-01 Thread Mike Turquette
e this index. See how the pointers are populated in ti_clk_register_dpll: dd->clk_ref = of_clk_get(node, 0); dd->clk_bypass = of_clk_get(node, 1); Tony, the same problem affects the FAPLL code which copy/pastes some of the DPLL code. Thoughts? Regards, Mike -- To unsubscribe f

Re: [PATCH 00/11] ARM: OMAP3: legacy clock data move under clk driver

2015-01-30 Thread Mike Turquette
Quoting Tero Kristo (2015-01-30 07:20:36) > On 01/30/2015 02:42 AM, Mike Turquette wrote: > > Quoting Tero Kristo (2015-01-29 12:19:29) > >> On 01/08/2015 01:00 AM, Tony Lindgren wrote: > >>> * Tero Kristo [141216 08:22]: > >>>> Hi, > >>>&g

Re: [PATCH 00/11] ARM: OMAP3: legacy clock data move under clk driver

2015-01-29 Thread Mike Turquette
it should be possible to get rid of > >> clk-private.h (long pending project for Mike.) > >> > >> Testing done (on top of 3.18-rc1): > >> > >> omap3-beagle: boot / suspend-resume (ret/off) / cpuidle (ret/off) > >> omap3-beagle-xm: boot upto fs

Re: [PATCH 0/2] Minimal FAPLL clock support for dm816x

2015-01-19 Thread Mike Turquette
Quoting Mike Turquette (2015-01-14 14:06:49) > Quoting Tony Lindgren (2015-01-13 14:51:26) > > Hi all, > > > > Here's a minimal support for the FAPLL (Flying Adder PLL) on dm816x > > which is a omap variant. > > Tony, > > Patches look fine to me.

Re: [PATCH 0/2] Minimal FAPLL clock support for dm816x

2015-01-14 Thread Mike Turquette
quot;flying adder pll" is a pretty badass pll name. Regards, Mike > > Regards, > > Tony > > > Tony Lindgren (2): > clk: ti: Add support for FAPLL on dm816x > clk: ti: Initialize clocks for dm816x > > .../devicetree/bindin

Re: regression: Clock changes in next-20141205 break at least omap4

2014-12-18 Thread Mike Turquette
etely agree that the interfaces and abstractions in the clock framework do not scale well. As an example, there could be much more reuse if callbacks such as .get_best_div() existed and the large variety of .round_rate() implementations could be replaced by a single generic one. Easier mixing an

Re: [PATCH] clk: prevent erronous parsing of children during rate change

2014-09-30 Thread Mike Turquette
Quoting Tero Kristo (2014-09-30 01:48:49) > On 09/30/2014 10:07 AM, Mike Turquette wrote: > > Quoting Tero Kristo (2014-09-29 01:09:24) > >> On 09/27/2014 02:24 AM, Mike Turquette wrote: > >>> Quoting Tero Kristo (2014-09-26 00:18:55) > >>>> On 09/26/

Re: [PATCH] clk: prevent erronous parsing of children during rate change

2014-09-30 Thread Mike Turquette
Quoting Tero Kristo (2014-09-29 01:09:24) > On 09/27/2014 02:24 AM, Mike Turquette wrote: > > Quoting Tero Kristo (2014-09-26 00:18:55) > >> On 09/26/2014 04:35 AM, Stephen Boyd wrote: > >>> On 09/23/14 06:38, Tero Kristo wrote: > >>>> On 09/22/2014 1

Re: [GIT PULL] TI clock driver changes for 3.18 merge window

2014-09-29 Thread Mike Turquette
Quoting Tero Kristo (2014-09-29 09:13:09) > Hi Mike, > > The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9: > >Linux 3.17-rc1 (2014-08-16 10:40:26 -0600) > > are available in the git repository at: > >g...@github.com:t-kristo/li

Re: [PATCH v3 1/5] clk: ti: add "ti,gpio-gate-clock" controlled clock

2014-09-26 Thread Mike Turquette
like a generic one to me. > > > > Like thread: https://lkml.org/lkml/2014/9/5/284 ? > > Right, I should've read the earlier versions before making any smart > comments =). No supporters cropped up for the generic gpio clock, but the design is common enough to merit a c

Re: [PATCH] clk: add gpio gated clock

2014-09-26 Thread Mike Turquette
Quoting Jyri Sarha (2014-09-11 01:44:24) > On 09/10/2014 01:14 AM, Mike Turquette wrote: > > Quoting Jyri Sarha (2014-09-05 05:21:34) > >> The added gpio-gate-clock is a basic clock that can be enabled and > >> disabled trough a gpio output. The DT binding document for t

Re: [PATCH] clk: prevent erronous parsing of children during rate change

2014-09-26 Thread Mike Turquette
gt; clock first without programming the M+N first. I took a quick look and it still seems to me that the OMAP DPLLs are still not modeled properly as mux clocks. Is this correct? This issue has been lingering for a long time and we can't use determine_rate unless that clock has multiple parent

Re: [PATCH 3/5] clk: Remove .owner field for driver

2014-09-25 Thread Mike Turquette
for drivers which > use the module_platform_driver API, as this is overriden in > platform_driver_register anyway." > > Signed-off-by: Kiran Padwal Applied to clk-next. Regards, Mike > --- > drivers/clk/clk-axi-clkgen.c |1 - > drivers/clk/clk-max77686.

Re: [PATCH] clk: add gpio gated clock

2014-09-09 Thread Mike Turquette
> specific clocks. > I searched through my archives and found a post from January. You Cc'd me as "". Note that the address is wrapped in chevrons but there is no name string (e.g. "Mike Turquette"). My mailer doesn't parse this well it was not flagged as to:me in

Re: [PATCH 0/1] ARM: OMAP: add external clock provider support

2014-09-03 Thread Mike Turquette
ds through device tree. Clock sources as such include for > >> example twl-6030 / twl-6040 chips and variants which can be used to clock > >> for example audio / WLAN chips. > > > > Just one question to Mike and Tero: > > would it be possible to have generic binding

Re: [PATCH] clk: prevent erronous parsing of children during rate change

2014-09-03 Thread Mike Turquette
> http://article.gmane.org/gmane.linux.ports.arm.kernel/349180 for details. > > Signed-off-by: Tero Kristo > To: Mike Turquette > Reported-by: Nishanth Menon Applied to clk-fixes. Thanks! Mike > --- > drivers/clk/clk.c |7 ++- > 1 file changed, 6 insertions(+),

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: [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] clk: ti: clk-7xx: Correct ABE DPLL configuration

2014-07-28 Thread Mike Turquette
; getting > >> default rate/parent support through DT. I would like a comment from Mike > >> about > >> the estimate when this can get in, and whether we should merge intermediate > >> solutions still like this. Tero, On May 19 you said, "Thanks, q

Re: [PATCH 00/13] ARM: OMAP2+: clock cleanup series for 3.17

2014-07-13 Thread Mike Turquette
s > to certain board specific functionality. The basic idea of this set is to > introduce clk_features struct which contains any SoC specific data / flags > within it, and this is used runtime instead of the current cpu_is_? checks. Reviewed-by: Mike Turquette > > There are also a cou

Re: [RFC PATCH] clk: ti: set CLK_SET_RATE_NO_REPARENT for ti,mux-clock

2014-07-03 Thread Mike Turquette
s. > > > > did you skip a few -rcs by any chance? Looks like this could've been > > merged on v3.16-rc3... Just checking. > > This goes through Mike's clk tree, so there is extra latency there. Not > sure when he plans to send next pull-req for clk-fixes to linu

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-

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

2014-07-01 Thread Mike Turquette
gned long palmas_clks_recalc_rate(struct clk_hw *hw, > >> +unsigned long parent_rate) > >> +{ > >> + return 32768; > >> +} > > > > I see that other clock drivers using a constant rate return 0 if the > &g

Re: [PATCH 1/3] clk: ti: add 'ti,round-rate' flag

2014-07-01 Thread Mike Turquette
e target rate requested. I agree that the behavior of clk_round_rate needs to be defined once and for all. I also think that clk_round_ceil, clk_round_floor and clk_round_exact aren't terrible ideas either. I'll kick off a thread on this topic shortly, and we can hopefully gain some co

Re: [RFC PATCH] clk: ti: set CLK_SET_RATE_NO_REPARENT for ti,mux-clock

2014-06-17 Thread Mike Turquette
nk...). The point is to get the rate you ask for when you call clk_set_rate. The method by which the PLL achieves that rate isn't really important, so long as you have glitchless clocks (which OMAP's PRCM does). Regards, Mike > > .Tero > -- To unsubscribe from this list: send t

Re: [RFC PATCH] clk: ti: set CLK_SET_RATE_NO_REPARENT for ti,mux-clock

2014-06-17 Thread Mike Turquette
_rate) the CLK_SET_RATE_NO_REPARENT flag was applied to all affected users to maintain prior behavior and prevent regressions. I have some local patches to improve documentation around these areas for 3.17. Regards, Mike > > > This is a rather dangerous default, and causes problems on

Re: [PATCH 1/3] clk: ti: add 'ti,round-rate' flag

2014-05-30 Thread Mike Turquette
Quoting Tomi Valkeinen (2014-05-15 05:25:37) > On 15/05/14 09:08, Mike Turquette wrote: > > Quoting Tomi Valkeinen (2014-05-12 05:13:51) > >> On 12/05/14 15:02, Tero Kristo wrote: > >>> On 05/08/2014 12:06 PM, Tomi Valkeinen wrote: > >>>> The current D

Re: [PATCHv3] arm: dts: am43x-clock: add tbclk data for ehrpwm.

2014-05-28 Thread Mike Turquette
On Mon, May 19, 2014 at 6:20 AM, Tero Kristo wrote: > On 05/05/2014 10:49 AM, Tero Kristo wrote: >> >> On 05/01/2014 10:00 PM, Mike Turquette wrote: >>> >>> Quoting Tero Kristo (2014-04-29 07:51:14) >>>> >>>> On 04/29/2014 05:15 PM, Sourav

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

2014-05-27 Thread Mike Turquette
efclk_ext > >>>>>> in PRCM is useless. > >>>>> > >>>>> I think what Nishant meant is that if "refclk_ext" is provided it means > >>>>> that the driver > >>>>> should use that over "dpll_

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

2014-05-23 Thread Mike Turquette
me > boundary case survival. DCC also exists in OMAP4. In some cases customers used it, in other cases we just ran the PLL way out of spec and the mpu_clk would divide by 2. Is this broken for OMAP4 as well? Regards, Mike > > Verified on the following impacted platforms using 3

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

2014-05-20 Thread Mike Turquette
omain. Other IPs can > use the ATL generated clock as their functional clock (McASPs for example) > and external components like audio codecs can also use the very same clock > as their MCLK. > > The ATL IP in DRA7 contains 4 ATL instences. > > Signed-off-by: Peter Ujfalusi Look

Re: [PATCHv2] arm: dts: am33xx-clock: Fix ehrpwm tbclk data.

2014-05-20 Thread Mike Turquette
Quoting Sourav Poddar (2014-04-29 01:34:20) > tbclk does not need to be a composite clock, we can simply > use gate clock for this purpose. > > Signed-off-by: Sourav Poddar Looks good. Regards, Mike > --- > v1->v2: > change compatible string according to mainline. >

Re: [PATCH 1/3] clk: ti: add 'ti,round-rate' flag

2014-05-14 Thread Mike Turquette
with respect to the API definition. Has anyone tried making the new flag as the default behavior and seeing if anything breaks? For those users of the omapconf tool I enjoy doing something like the following: omapconf dump prcm > old omapconf dump prcm > new diff -u old new This s

Re: [PATCHv3] arm: dts: am43x-clock: add tbclk data for ehrpwm.

2014-05-01 Thread Mike Turquette
: Sourav Poddar > > Acked-by: Tero Kristo Looks good to me. Tero, just to be clear, are you planning on batching up OMAPish clock patches and sending a pull request (once they have been reviewed on the list)? Thanks, Mike > > > > --- > > v2->v3 > >

Re: [PATCH 0/4] clk: dt: add support for default rate/parent

2014-03-20 Thread Mike Turquette
Quoting Tero Kristo (2014-03-05 05:10:17) > Ping. > > Mike, any feedback on this? Hi Tero, Have you seen Sylwester's approach[1]? I prefer it since it is more device-oriented and less "centralized". The clock consumer enumerates the default parent or rate of a consumed

Re: [RFC PATCH 3/6] PM / Voltagedomain: introduce voltage domain driver support

2014-03-19 Thread Mike Turquette
premature given that the level of discussion around those features never hit critical mass. So the ratio thing is sensible, but it would be the first constraint-like mechanism in the clock framework so what that looks like bares careful consideration. > > > Mike, > Any suggestions

Re: [PATCH 1/8] clk: divider: fix rate calculation for fractional rates

2014-03-18 Thread Mike Turquette
Quoting Tomi Valkeinen (2014-03-17 05:53:03) > On 27/02/14 04:25, Mike Turquette wrote: > > Quoting Tero Kristo (2014-02-14 05:45:22) > >> On 02/13/2014 12:03 PM, Tomi Valkeinen wrote: > >>> clk-divider.c does not calculate the rates consistently at the moment. >

Re: [RFC PATCH 1/6] PM / Voltagedomain: Add generic clk notifier handler for regulator based dynamic voltage scaling

2014-02-26 Thread Mike Turquette
declared structure representing the sub-unit. Some variations on that theme: int pm_runtime_set_rate(struct perf_domain *perfdm, unsigned long rate); or, int pm_runtime_set_rate(struct generic_power_domain *gpd, unsigned long rate); or whatever that sub-unit looks like. The gpd thing might b

Re: [PATCH 1/8] clk: divider: fix rate calculation for fractional rates

2014-02-26 Thread Mike Turquette
rounding, the result is that the > > clock is set to the rate of 10800, not 123428571 returned by the > > clk_round_rate. > > > > This patch changes the clk-divider.c to use DIV_ROUND_UP when > > calculating the rate. This gives the following behavior w

Re: [PATCH v8 06/14] CLK: TI: OMAP3: Get rid of unused USB Host dummy clocks

2014-02-26 Thread Mike Turquette
Quoting Roger Quadros (2014-02-25 01:32:19) > Hi Mike, > > On 02/25/2014 10:43 AM, Mike Turquette wrote: > > Quoting Roger Quadros (2014-02-20 03:40:01) > >> The OMAP USB Host MFD driver no longer expects these non-existing > >> clocks from the OMAP3 platform, s

Re: [PATCH v3 1/2] CLK: TI: OMAP4/5/DRA7: Remove gpmc_fck from dummy clocks

2014-02-26 Thread Mike Turquette
vices on the bus being lost in the La La Land. > > It is better to remove gpmc_fck from the dummy clocks, so that gpmc.c > can fail gracefully. > > Signed-off-by: Florian Vaussard Looks good to me. Regards, Mike > --- > drivers/clk/ti/clk-44xx.c | 1 - > drivers/clk/t

Re: [PATCH v8 06/14] CLK: TI: OMAP3: Get rid of unused USB Host dummy clocks

2014-02-25 Thread Mike Turquette
Quoting Roger Quadros (2014-02-20 03:40:01) > The OMAP USB Host MFD driver no longer expects these non-existing > clocks from the OMAP3 platform, so get rid of them. Looks good to me. Regards, Mike > > CC: Tero Kristo > CC: Mike Turquette > Signed-off-by: Roger Quadros

Re: [PATCH 1/2] clk: ti: am335x: remove unecessary cpu0 clk node

2014-02-25 Thread Mike Turquette
Quoting Nishanth Menon (2014-01-29 10:19:16) > cpu0 clock node has no functionality, since cpufreq-cpu0 is already > capable of picking up the clock from dts. > > Signed-off-by: Nishanth Menon Taken into clk-next! Regards, Mike > --- > drivers/clk/ti/clk-33xx.c |1 - &g

Re: [RFC PATCH 1/6] PM / Voltagedomain: Add generic clk notifier handler for regulator based dynamic voltage scaling

2014-02-24 Thread Mike Turquette
Quoting Nishanth Menon (2014-02-18 12:32:18) > From: Mike Turquette > > This patch provides helper functions for drivers that wish to scale > voltage through the clock rate-change notifiers. The approach taken > is that the user-driver(cpufreq/devfreq) do not care about the >

Re: [PATCH 0/3] ARM: OMAP: clk-next-omap emergency fixes

2014-01-19 Thread Mike Turquette
On Sat, Jan 18, 2014 at 9:50 AM, Tony Lindgren wrote: > * Mike Turquette [140117 13:39]: >> Quoting Tero Kristo (2014-01-17 12:25:37) >> > Hi, >> > >> > Quick emergency band-aid for the build breakages introduced in clk-next >> > by Mike. I did

Re: [PATCH 0/3] ARM: OMAP: clk-next-omap emergency fixes

2014-01-17 Thread Mike Turquette
Quoting Tero Kristo (2014-01-17 12:25:37) > Hi, > > Quick emergency band-aid for the build breakages introduced in clk-next > by Mike. I didn't have time to test this out (Nishanth will provide some > logs) and I will leave the decision whether/how to use these patches or

Re: [PATCHv13 00/40] ARM: TI SoC clock DT conversion

2014-01-17 Thread Mike Turquette
Quoting Tero Kristo (2014-01-17 10:11:06) > On 01/17/2014 07:53 PM, Tony Lindgren wrote: > > * Kevin Hilman [140117 09:48]: > >> Mike Turquette writes: > >> > >> [...] > >> > >>> I took Tony's advice and fast-forwarded clk-next to

Re: [PATCHv13 00/40] ARM: TI SoC clock DT conversion

2014-01-14 Thread Mike Turquette
Quoting Mike Turquette (2014-01-14 19:16:32) > Quoting Felipe Balbi (2014-01-14 18:04:21) > > Hi, > > > > On Tue, Jan 14, 2014 at 02:36:13PM -0600, Felipe Balbi wrote: > > > > Felipe, care to run your randconfig magic for this? > > > > > > This

Re: [PATCHv13 00/40] ARM: TI SoC clock DT conversion

2014-01-14 Thread Mike Turquette
to handle the missing AM35xx dtsi data? It can always go as a separate fix after this stuff gets merged which, ironically, is how that file was created in the first place. Regards, Mike > > cheers > > -- > balbi -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCHv13 00/40] ARM: TI SoC clock DT conversion

2014-01-09 Thread Mike Turquette
term, this means the patch set shrank in > size from 49 patches to 40 (first 9 patches were dropped). > - Copy pasted implementation for clk-divider and clk-mux from drivers/clk > to drivers/clk/ti, and made the modifications needed to the TI version > of the clock drivers only (b

Re: [PATCHv10 10/41] CLK: TI: add support for clockdomain binding

2013-12-17 Thread Mike Turquette
Quoting Tero Kristo (2013-12-16 00:13:08) > On 12/15/2013 06:23 AM, Mike Turquette wrote: > > Quoting Tero Kristo (2013-11-26 00:05:51) > >> Some OMAP clocks require knowledge about their parent clockdomain for > >> book keeping purposes. This patch crea

Re: [PATCHv10 00/41] ARM: TI SoC clock DT conversion

2013-12-14 Thread Mike Turquette
that approach dumps crap into struct clk_hw which is bad. Anyways if you decide against regmap for V11 then the whole issue is avoided. Regards, Mike [1] http://article.gmane.org/gmane.linux.ports.arm.kernel/273742 [2] http://article.gmane.org/gmane.linux.ports.arm.kernel/273744 > - dropped

Re: [PATCHv10 10/41] CLK: TI: add support for clockdomain binding

2013-12-14 Thread Mike Turquette
common clock binding but that this binding definition does not define any new clocks or clock controllers in the way that a typical clock binding would. This code uses the 'clocks' property the same way that any other consumer binding definition would, such as an MMC controller or UART. T

Re: [PATCH v2 3/3] ARM: OMAP4: dts: Add main and optional clock data into DT

2013-12-14 Thread Mike Turquette
Quoting Rajendra Nayak (2013-12-12 03:38:29) > With support to parse clock data from DT, move all main and optional > clock information from hwmod to DT. > > We still retain clocks in hwmod for devices which do not have a DT node. > > Signed-off-by: Rajendra Nayak Reviewed-

Re: [PATCHv10 00/41] ARM: TI SoC clock DT conversion

2013-12-14 Thread Mike Turquette
e > functions to return status > > Testing done: > - omap3-beagle : boot + suspend/resume > - omap3-beagle-xm : boot (thanks to Nishanth) > - omap4-panda-es : boot + suspend/resume A quick note in testing: trace_clk_div_ck ends up as an orphan clock on my Panda ES. Regards

Re: [PATCHv10 01/41] clk: add support for platform specific clock I/O wrapper functions

2013-12-14 Thread Mike Turquette
not needed in that case? Regards, Mike > --- > drivers/clk/clk.c| 68 > ++ > include/linux/clk-provider.h | 15 +- > 2 files changed, 75 insertions(+), 8 deletions(-) > > diff --git a/drivers/clk/clk.c b/drivers/clk/

Re: OMAP3 NAND ECC selection

2013-12-08 Thread Mike Dunn
the SPL is written. Like the omap2 solution, the docg4 driver can be loaded with a special module parameter that enables writing the SPL partition in this mode. The docg4 is kind of a special case, though, because it is a nand flash wrapped inside a proprietary non-standard flash controller. Mike -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 02/11] ARM: OMAP3: clock: add API to enable/disable autoidle for a single clock

2013-10-21 Thread Mike Turquette
ss CM registers directly. > > > > Signed-off-by: Tero Kristo > > Thanks, queued. Please coordinate with Mike to get > allow_idle/deny_idle-type interfaces into the Common Clock Framework, so > these can be replaced with standard CCF-type allow_idle() & deny_idle() > functions.

Re: [PATCHv7 00/36] ARM: OMAP: clock data conversion to DT

2013-10-07 Thread Mike Turquette
Quoting Tero Kristo (2013-09-25 01:48:06) > Hi all, > > Version 7 contains following high level changes: > - Dropped support for basic bindings from Mike Turquette, instead using > vendor specific bindings for all clocks > - Mux clock + divider clock vendor specific bindi

Re: [PATCHv7 20/36] CLK: TI: DRA7: Add APLL support

2013-10-07 Thread Mike Turquette
epare for these PLLs which might take some time to lock? The code there doesn't sleep or schedule, but it does poll for some time while under a spinlock. Something to think about for a future patch. Regards, Mike -- To unsubscribe from this list: send the line "unsubscribe linux-omap"

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-10-07 Thread Mike Turquette
I wonder if that's valid in a case where a previous OS or > bootloader may have programmed the DPLL. Well it used to be that calling clk_set_rate(dpll, bypass_rate) would put it in bypass, I don't know if that is still the case. But you are right that having the implicit assu

Re: [PATCH 02/11] omapdss: HDMI: create a HDMI PLL library

2013-09-17 Thread Mike Turquette
On Tue, Sep 17, 2013 at 3:02 AM, Tomi Valkeinen wrote: > On 17/09/13 12:38, Mike Turquette wrote: >> Quoting Archit Taneja (2013-09-17 00:06:28) >>> HDMI PLL is a block common to DSS in OMAP4, OMAP5 and DRA7x. Move the >>> existing PLL functions from ti_hdmi_4xxx_ip

Re: [PATCH 02/11] omapdss: HDMI: create a HDMI PLL library

2013-09-17 Thread Mike Turquette
libraries. > > Signed-off-by: Archit Taneja Would be cool to see this convert to the common clock framework implementation (include/linux/clk-provider.h). It appears that this PLL only needs to support .enable, .disable and .recalc_rate callbacks at first glance. Regards, Mike > ---

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-09-16 Thread Mike Turquette
ct clk *' but > > argument is of type 'struct clk_hw_omap *' > > Yea sorry about that, I just quickly hacked the patch together without > testing it at all. :P > > > > > I then changed it (not 100% sure if correctly) to this version: > > > > +

Re: [PATCHv6 01/45] CLK: TI: Add DPLL clock support

2013-09-10 Thread Mike Turquette
= &omap2_init_dpll_parent, > + .recalc_rate= &omap3_dpll_recalc, > + .set_rate = &omap3_noncore_dpll_set_rate, > + .round_rate = &omap2_dpll_round_rate, > +}; > + > +static const struct clk_ops omap3_dpll_per_ck_ops = { > + .i

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-09-10 Thread Mike Turquette
On Tue, Sep 10, 2013 at 2:17 PM, Mike Turquette wrote: > Quoting Tero Kristo (2013-09-10 06:17:45) >> On 09/10/2013 03:40 PM, Tomi Valkeinen wrote: >> > On 10/09/13 15:24, Tero Kristo wrote: >> >> On 09/10/2013 03:19 PM, Tomi Valkeinen wrote: >> >

Re: Odd behavior with dpll4_m4x2_ck on omap3 + DT

2013-09-10 Thread Mike Turquette
gt; - > - v = __raw_readl(dd->control_reg) & dd->enable_mask; > - v >>= __ffs(dd->enable_mask); > - if ((v != OMAP3XXX_EN_DPLL_LOCKED) || (dd->flags & DPLL_J_TYPE)) > + if ((dd->flags & DPLL_J_TYPE) || > + __clk_get_rat

Re: [PATCHv5 02/31] CLK: TI: Add DPLL clock support

2013-08-19 Thread Mike Turquette
well we'll be able to maintain support for that in > >>> future if it requires other platform code to use now, and we're not sure > >>> how the domains themselves will be represented in dt. > >> > >> Hmm so, should I add a stub representation

Re: [PATCH] ARM: OMAP4: clock: Lock PLLs in the right sequence

2013-08-08 Thread Mike Turquette
ight now the DPLL implementation sort of manages the mux bits behind the clock framework's back, right? Regards, Mike > --- > arch/arm/mach-omap2/cclock44xx_data.c | 20 > 1 file changed, 12 insertions(+), 8 deletions(-) > > diff --git a/arch/arm/mach-omap2/ccloc

Re: [PATCH v4 6/8] wlcore: sdio: add wilink clock providers

2013-07-30 Thread Mike Turquette
clocks. That means that your driver could probably remove the clock setup code completely. Regards, Mike > + > goto out; > > out_free: > -- > 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Division by zero caused by CCF

2013-07-16 Thread Mike Turquette
v rate 1920 >> [ 21.592726] > clk_change_rate best_parent_rate 0 > > or because we reach: > if (clk->ops->set_rate) > clk->ops->set_rate(clk->hw, clk->new_rate, best_parent_rate); > > with clk->new_rate == 0. Hmm, I&

Re: [alsa-devel] Query on Audio DMA using DMAEngine

2013-07-03 Thread Mike Looijmans
ust McASP -> DDRRAM. Especially since the McASP has a built-in 256 byte FIFO buffer on both channels. In all my measurements, using the IRAM ping-pong only made things worse in terms of overruns and underruns, not better. Anyone who know why the ping-pong was implemented and what kind

Re: [alsa-devel] Query on Audio DMA using DMAEngine

2013-07-03 Thread Mike Looijmans
ples, this invariably fails on the current driver, with or without the ping-ping. Using the cyclic DMA I had no problem using such small periods. Mike. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org Mo

Re: [PATCH 4/4] ARM: DRA7: clockdomain data: add init file for dra7

2013-06-28 Thread Mike Turquette
is no longer needed. > > Signed-off-by: Tero Kristo > --- > arch/arm/mach-omap2/cclock7xx_data.c | 93 > ++ > 1 file changed, 93 insertions(+) > create mode 100644 arch/arm/mach-omap2/cclock7xx_data.c Why not drivers/clk/omap/clk-dra7xx.c?

Re: [PATCH 2/4] ARM: OMAP5: clockdomain data: add init file for omap54xx

2013-06-28 Thread Mike Turquette
p2/cclock54xx_data.c > b/arch/arm/mach-omap2/cclock54xx_data.c > new file mode 100644 Why not drivers/clk/omap/clk-omap54xx.c? Regards, Mike > index 000..f23f44e > --- /dev/null > +++ b/arch/arm/mach-omap2/cclock54xx_data.c > @@ -0,0 +1,74 @@ > +/* > + * OMAP54xx C

Re: [PATCHv2 02/11] CLK: use of_property_read_u32 instead of read_u8

2013-06-20 Thread Mike Turquette
8) bit_idx, clk_gate_flags, NULL); Thanks, Mike > > Signed-off-by: Tero Kristo > --- > drivers/clk/clk-divider.c |4 ++-- > drivers/clk/clk-gate.c|4 ++-- > drivers/clk/clk-mux.c |4 ++-- > 3 files changed, 6 insertions(+), 6 deletions(-) &

[PATCH RFC 0/3] first pass converting omap4 clock data to DT

2013-06-03 Thread Mike Turquette
-clock, divider-clock, fixed-clock, fixed-factor and (unpublished) gate-clock bindings in my local repo, but it is not currently booting. I wanted to get this early preview out regardless. [1] http://article.gmane.org/gmane.linux.kernel/1501216 Mike Turquette (3): clk: omap: introduce clock driver

[PATCH RFC 3/3] ARM: omap4: register DT clocks & remove old data

2013-06-03 Thread Mike Turquette
: Paul Walmsley Cc: Tony Lindgren Signed-off-by: Mike Turquette --- arch/arm/mach-omap2/cclock44xx_data.c | 54 --- 1 file changed, 6 insertions(+), 48 deletions(-) diff --git a/arch/arm/mach-omap2/cclock44xx_data.c b/arch/arm/mach-omap2/cclock44xx_data.c index

[PATCH RFC 2/3] ARM: dts: omap4 clock data

2013-06-03 Thread Mike Turquette
arly and often to see what others think of this approach. Cc: Benoit Cousson Cc: Rajendra Nayak Cc: Joel A Fernandes Cc: Nishanth Menon Cc: Paul Walmsley Cc: Tony Lindgren Signed-off-by: Mike Turquette --- arch/arm/boot/dts/omap4-clocks.dtsi | 128 arch/arm/

[PATCH RFC 1/3] clk: omap: introduce clock driver

2013-06-03 Thread Mike Turquette
Cc: Joel A Fernandes Cc: Nishanth Menon Cc: Paul Walmsley Cc: Tony Lindgren Signed-off-by: Mike Turquette --- This driver simply matches the basic bindings (so far). Eventually it would match omap-specific bindings for DPLLs, CLKOUTX2 and strange leaf clocks as well. This doesn't scale

Re: [Patch 1/3] clk: fix clk_mux_get_parent return's signed value

2013-06-03 Thread Mike Turquette
; > > Thanks! > Will fix them and add your ack to it? Great, thanks! Don't worry about the Ack. I'll take the patch through the clk tree so it will have my SoB. Regards, Mike > > >> Regards, >> Mike >> >>> Currently if the value read is grea

Re: [PATCH v2 1/1] ARM : omap3 : fix wrong container_of in clock36xx.c

2013-05-31 Thread Mike Turquette
is done and everything looks good then please add: Acked-by: Mike Turquette > > Index: b/arch/arm/mach-omap2/clock36xx.c > === > --- a/arch/arm/mach-omap2/clock36xx.c > +++ b/arch/arm/mach-omap2/clock36xx.c > @@ -39

Re: [PATCH] ARM : omap3 : fix wrong container_of in clock36xx.c

2013-05-29 Thread Mike Turquette
out reentrantly calling clk_set_rate here to achieve the same effect? /* kick parent's clksel register after toggling PWRDN bit */ struct clk *parent = clk_get_parent(clk->clk); unsigned long parent_rate = clk_get_rate(parent); clk_set_rate(parent, parent_rat

Re: [PATCH V5 1/6] clk: OMAP: introduce device tree binding to kernel clock data

2013-05-13 Thread Mike Turquette
e accessible by of_clk_get. > FYI, I'm working on moving the OMAP clocks over to DT which is a better alternative than this patch. I'll share what I have on the list, hopefully next week. Regards, Mike > Based on discussion contributions from Roger Quadros, Grygorii Strashko

Re: [PATCH V4 1/6] clk: OMAP: introduce device tree binding to kernel clock data

2013-04-24 Thread Mike Turquette
e accessible by of_clk_get. > > Based on discussion contributions from Roger Quadros, Grygorii Strashko > and others. > > Cc: Kevin Hilman > Cc: Mike Turquette > Cc: Paul Walmsley > [t...@atomide.com: co-developed] > Signed-off-by: Tony Lindgren > Signed-off-by:

Re: [RFC PATCH v2 0/6] ARM: OMAP3+: Introduce ABB driver

2013-04-16 Thread Mike Turquette
lot to understand why regulator chaining is a requirement for this to work properly. Thanks, Mike > > > This simple model will be extended to handle AVS as a part of the chain. > smps123 regulator may be changed to VP/VC regulator. > > Following example is from integration branch, w

Re: [RFC PATCH v2 5/6] ARM: OMAP3+: ABB: introduce ABB driver

2013-04-15 Thread Mike Turquette
Quoting Andrii Tseglytskyi (2013-04-15 06:28:10) > Cc: Mike Turquette > > Signed-off-by: Andrii.Tseglytskyi > Signed-off-by: Mike Turquette It is very strange to Cc me and include my Signed-off-by. Go ahead and drop my SoB. I'll review these patches this week but I don&#

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-11 Thread Mike Turquette
AR PURPOSE. See the > + * GNU General Public License for more details. > + */ > + > +#include > +#include Please use clk-provider.h. Otherwise this looks like an OK transitional solution. Hopefully this will be replaced with a more legitimate clock driver for 3.11. Regards, Mike -- To unsubscri

Re: [RFC][PATCH 1/2] ARM: OMAP4: clock: Add device tree support for AUXCLKs

2013-04-10 Thread Mike Turquette
d on the binding etc. > I did try to have an implementation for cpufreq using clock nodes. > unfortunately, device tree wont let me have arguments of strings :( > So, I am unable to do clock = <&clk mpu_dpll>; > instead, I am forced to do clock = <&clk 249>; > S

  1   2   3   4   5   6   >