Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700367 > unrolled thread

Re: [PATCH] clk: samsung: exynos5420: The EPLL rate table corrections

Started byStephen Boyd <sboyd@codeaurora.org>
First post2017-07-31 22:20 +0200
Last post2017-08-01 12:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] clk: samsung: exynos5420: The EPLL rate table corrections Stephen Boyd <sboyd@codeaurora.org> - 2017-07-31 22:20 +0200
    Re: [PATCH] clk: samsung: exynos5420: The EPLL rate table  corrections Sylwester Nawrocki <s.nawrocki@samsung.com> - 2017-08-01 12:20 +0200

#1700367 — Re: [PATCH] clk: samsung: exynos5420: The EPLL rate table corrections

FromStephen Boyd <sboyd@codeaurora.org>
Date2017-07-31 22:20 +0200
SubjectRe: [PATCH] clk: samsung: exynos5420: The EPLL rate table corrections
Message-ID<u9pku-2jJ-7@gated-at.bofh.it>
On 07/31, Sylwester Nawrocki wrote:
> On 07/21/2017 01:19 PM, Sylwester Nawrocki wrote:
> >This patch fixes values of the EPLL K coefficient and changes
> >the EPLL output frequency values to match exactly what is
> >possible to achieve with given M, P, S, K coefficients.
> >This allows to avoid rounding errors and unexpected frequency
> >being set with clk_set_rate(), due to recalc_rate returning
> >different values than the PLL rate specified in the
> >exynos5420_epll_24mhz_tbl table. E.g. this prevents a case
> >where two consecutive clk_set_rate() calls with same argument
> >result in different PLL output frequency.
> >
> >The PLL output frequencies have been calculated with formula:
> >
> >f = fxtal * (M * 2^16  + K) / (P * 2^S) / 2^16
> >
> >where fxtal = 24000000.
> >
> >Fixes: 9842452acd ("clk: samsung: exynos542x: Add EPLL rate table")
> >Signed-off-by: Sylwester Nawrocki<s.nawrocki@samsung.com>
> 
> Stephen, Mike,
> 
> Could you apply this patch directly for v4.12-rcX?
> It fixes code added in v4.12.
> 

You mean v4.13? Sure.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

[toc] | [next] | [standalone]


#1700810 — Re: [PATCH] clk: samsung: exynos5420: The EPLL rate table corrections

FromSylwester Nawrocki <s.nawrocki@samsung.com>
Date2017-08-01 12:20 +0200
SubjectRe: [PATCH] clk: samsung: exynos5420: The EPLL rate table corrections
Message-ID<u9Cro-2tI-3@gated-at.bofh.it>
In reply to#1700367
On 07/31/2017 10:17 PM, Stephen Boyd wrote:
> On 07/31, Sylwester Nawrocki wrote:
>> On 07/21/2017 01:19 PM, Sylwester Nawrocki wrote:
>>> This patch fixes values of the EPLL K coefficient and changes
>>> the EPLL output frequency values to match exactly what is
>>> possible to achieve with given M, P, S, K coefficients.
>>> This allows to avoid rounding errors and unexpected frequency
>>> being set with clk_set_rate(), due to recalc_rate returning
>>> different values than the PLL rate specified in the
>>> exynos5420_epll_24mhz_tbl table. E.g. this prevents a case
>>> where two consecutive clk_set_rate() calls with same argument
>>> result in different PLL output frequency.
>>>
>>> The PLL output frequencies have been calculated with formula:
>>>
>>> f = fxtal * (M * 2^16   + K) / (P * 2^S) / 2^16
>>>
>>> where fxtal = 24000000.
>>>
>>> Fixes: 9842452acd ("clk: samsung: exynos542x: Add EPLL rate table")
>>> Signed-off-by: Sylwester Nawrocki<s.nawrocki@samsung.com>
>> Stephen, Mike,
>>
>> Could you apply this patch directly for v4.12-rcX?
>> It fixes code added in v4.12.
>>
> You mean v4.13? Sure.

Yes, apologies for confusing these numbers. Thanks for taking
care of the patch.

-- 
Regards,
Sylwester

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web