linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpufreq: imx6q: imx6ull should use the same flow as imx6ul
@ 2017-05-30 15:57 Leonard Crestez
  2017-05-31  4:00 ` Viresh Kumar
  2017-05-31  4:07 ` Fabio Estevam
  0 siblings, 2 replies; 4+ messages in thread
From: Leonard Crestez @ 2017-05-30 15:57 UTC (permalink / raw)
  To: Viresh Kumar, Rafael J. Wysocki
  Cc: Octavian Purdila, Shawn Guo, Bai Ping, Lucas Stach,
	Fabio Estevam, linux-pm, linux-arm-kernel, linux-kernel

From: Octavian Purdila <octavian.purdila@nxp.com>

This fixes an issue with imx6ull where setting the frequency to 528Mhz
would actually set the ARM clock to 324Mhz.

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
---
 drivers/cpufreq/imx6q-cpufreq.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index 9c13f09..b6edd3c 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -101,7 +101,8 @@ static int imx6q_set_target(struct cpufreq_policy *policy, unsigned int index)
 	 *  - Reprogram pll1_sys_clk and reparent pll1_sw_clk back to it
 	 *  - Disable pll2_pfd2_396m_clk
 	 */
-	if (of_machine_is_compatible("fsl,imx6ul")) {
+	if (of_machine_is_compatible("fsl,imx6ul") ||
+	    of_machine_is_compatible("fsl,imx6ull")) {
 		/*
 		 * When changing pll1_sw_clk's parent to pll1_sys_clk,
 		 * CPU may run at higher than 528MHz, this will lead to
@@ -215,7 +216,8 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
 		goto put_clk;
 	}
 
-	if (of_machine_is_compatible("fsl,imx6ul")) {
+	if (of_machine_is_compatible("fsl,imx6ul") ||
+	    of_machine_is_compatible("fsl,imx6ull")) {
 		pll2_bus_clk = clk_get(cpu_dev, "pll2_bus");
 		secondary_sel_clk = clk_get(cpu_dev, "secondary_sel");
 		if (IS_ERR(pll2_bus_clk) || IS_ERR(secondary_sel_clk)) {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] cpufreq: imx6q: imx6ull should use the same flow as imx6ul
  2017-05-30 15:57 [PATCH] cpufreq: imx6q: imx6ull should use the same flow as imx6ul Leonard Crestez
@ 2017-05-31  4:00 ` Viresh Kumar
  2017-05-31  4:07 ` Fabio Estevam
  1 sibling, 0 replies; 4+ messages in thread
From: Viresh Kumar @ 2017-05-31  4:00 UTC (permalink / raw)
  To: Leonard Crestez
  Cc: Rafael J. Wysocki, Octavian Purdila, Shawn Guo, Bai Ping,
	Lucas Stach, Fabio Estevam, linux-pm, linux-arm-kernel,
	linux-kernel

On 30-05-17, 18:57, Leonard Crestez wrote:
> From: Octavian Purdila <octavian.purdila@nxp.com>
> 
> This fixes an issue with imx6ull where setting the frequency to 528Mhz
> would actually set the ARM clock to 324Mhz.
> 
> Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> ---
>  drivers/cpufreq/imx6q-cpufreq.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
> index 9c13f09..b6edd3c 100644
> --- a/drivers/cpufreq/imx6q-cpufreq.c
> +++ b/drivers/cpufreq/imx6q-cpufreq.c
> @@ -101,7 +101,8 @@ static int imx6q_set_target(struct cpufreq_policy *policy, unsigned int index)
>  	 *  - Reprogram pll1_sys_clk and reparent pll1_sw_clk back to it
>  	 *  - Disable pll2_pfd2_396m_clk
>  	 */
> -	if (of_machine_is_compatible("fsl,imx6ul")) {
> +	if (of_machine_is_compatible("fsl,imx6ul") ||
> +	    of_machine_is_compatible("fsl,imx6ull")) {
>  		/*
>  		 * When changing pll1_sw_clk's parent to pll1_sys_clk,
>  		 * CPU may run at higher than 528MHz, this will lead to
> @@ -215,7 +216,8 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
>  		goto put_clk;
>  	}
>  
> -	if (of_machine_is_compatible("fsl,imx6ul")) {
> +	if (of_machine_is_compatible("fsl,imx6ul") ||
> +	    of_machine_is_compatible("fsl,imx6ull")) {
>  		pll2_bus_clk = clk_get(cpu_dev, "pll2_bus");
>  		secondary_sel_clk = clk_get(cpu_dev, "secondary_sel");
>  		if (IS_ERR(pll2_bus_clk) || IS_ERR(secondary_sel_clk)) {

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cpufreq: imx6q: imx6ull should use the same flow as imx6ul
  2017-05-30 15:57 [PATCH] cpufreq: imx6q: imx6ull should use the same flow as imx6ul Leonard Crestez
  2017-05-31  4:00 ` Viresh Kumar
@ 2017-05-31  4:07 ` Fabio Estevam
  2017-06-21 10:53   ` Leonard Crestez
  1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2017-05-31  4:07 UTC (permalink / raw)
  To: Leonard Crestez
  Cc: Viresh Kumar, Rafael J. Wysocki, Bai Ping, linux-pm,
	linux-kernel, Octavian Purdila, Fabio Estevam, Shawn Guo,
	linux-arm-kernel, Lucas Stach

On Tue, May 30, 2017 at 12:57 PM, Leonard Crestez
<leonard.crestez@nxp.com> wrote:
> From: Octavian Purdila <octavian.purdila@nxp.com>
>
> This fixes an issue with imx6ull where setting the frequency to 528Mhz
> would actually set the ARM clock to 324Mhz.
>
> Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
> Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>

Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] cpufreq: imx6q: imx6ull should use the same flow as imx6ul
  2017-05-31  4:07 ` Fabio Estevam
@ 2017-06-21 10:53   ` Leonard Crestez
  0 siblings, 0 replies; 4+ messages in thread
From: Leonard Crestez @ 2017-06-21 10:53 UTC (permalink / raw)
  To: Rafael J. Wysocki, Viresh Kumar
  Cc: Bai Ping, linux-pm, linux-kernel, Octavian Purdila,
	Fabio Estevam, Shawn Guo, linux-arm-kernel, Lucas Stach

On Wed, 2017-05-31 at 01:07 -0300, Fabio Estevam wrote:
> On Tue, May 30, 2017 at 12:57 PM, Leonard Crestez
> <leonard.crestez@nxp.com> wrote:
> > 
> > From: Octavian Purdila <octavian.purdila@nxp.com>
> > 
> > This fixes an issue with imx6ull where setting the frequency to
> > 528Mhz
> > would actually set the ARM clock to 324Mhz.
> > 
> > Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
> > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>

This is a gentle reminder that this patch has been posted 3 weeks ago
but has not yet been applied.

--
Regards,
Leonard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-21 10:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-30 15:57 [PATCH] cpufreq: imx6q: imx6ull should use the same flow as imx6ul Leonard Crestez
2017-05-31  4:00 ` Viresh Kumar
2017-05-31  4:07 ` Fabio Estevam
2017-06-21 10:53   ` Leonard Crestez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).