* [PATCH] ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
@ 2017-10-10 11:20 Leonard Crestez
2017-10-10 11:44 ` Lucas Stach
0 siblings, 1 reply; 4+ messages in thread
From: Leonard Crestez @ 2017-10-10 11:20 UTC (permalink / raw)
To: linux-arm-kernel
Enable cpuidle support on i.MX6DL starting from IMX_CHIP_REVISION_1_1.
This also makes the code cleaner because 6q and 6dl actually have
different revision histories.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
---
arch/arm/mach-imx/mach-imx6q.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 45801b2..ef0c949 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -374,7 +374,8 @@ static void __init imx6q_init_late(void)
* WAIT mode is broken on TO 1.0 and 1.1, so there is no point
* to run cpuidle on them.
*/
- if (imx_get_soc_revision() > IMX_CHIP_REVISION_1_1)
+ if ((cpu_is_imx6q() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) ||
+ (cpu_is_imx6dl() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_0))
imx6q_cpuidle_init();
if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) {
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
2017-10-10 11:20 [PATCH] ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1 Leonard Crestez
@ 2017-10-10 11:44 ` Lucas Stach
2017-10-10 11:57 ` Leonard Crestez
0 siblings, 1 reply; 4+ messages in thread
From: Lucas Stach @ 2017-10-10 11:44 UTC (permalink / raw)
To: linux-arm-kernel
Am Dienstag, den 10.10.2017, 14:20 +0300 schrieb Leonard Crestez:
> Enable cpuidle support on i.MX6DL starting from
> IMX_CHIP_REVISION_1_1.
Did you mean 1.0 here and in the subject? This would make sense AFAICS,
and is also in line with what the code change does.
> This also makes the code cleaner because 6q and 6dl actually have
> different revision histories.
>
> > Signed-off-by: Bai Ping <ping.bai@nxp.com>
> > Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
> ---
> ?arch/arm/mach-imx/mach-imx6q.c | 3 ++-
> ?1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
> index 45801b2..ef0c949 100644
> --- a/arch/arm/mach-imx/mach-imx6q.c
> +++ b/arch/arm/mach-imx/mach-imx6q.c
> @@ -374,7 +374,8 @@ static void __init imx6q_init_late(void)
> > ? ?* WAIT mode is broken on TO 1.0 and 1.1, so there is no point
> > ? ?* to run cpuidle on them.
> > ? ?*/
> > - if (imx_get_soc_revision() > IMX_CHIP_REVISION_1_1)
> > + if ((cpu_is_imx6q() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) ||
> > + ????(cpu_is_imx6dl() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_0))
> > ? imx6q_cpuidle_init();
> ?
> > ? if (IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) {
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
2017-10-10 11:44 ` Lucas Stach
@ 2017-10-10 11:57 ` Leonard Crestez
2017-10-10 12:26 ` Lucas Stach
0 siblings, 1 reply; 4+ messages in thread
From: Leonard Crestez @ 2017-10-10 11:57 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, 2017-10-10 at 13:44 +0200, Lucas Stach wrote:
> Am Dienstag, den 10.10.2017, 14:20 +0300 schrieb Leonard Crestez:
> > Enable cpuidle support on i.MX6DL starting from
> > IMX_CHIP_REVISION_1_1.
> Did you mean 1.0 here and in the subject? This would make sense AFAICS,
> ?and is also in line with what the code change does.
No, I do mean "1.1" for 6dl. It's a bit confusing because the code uses
> instead of >= for comparison.
This patch results in imx6q_cpuidle_init getting called if
(cpu_is_imx6dl() &&?imx_get_soc_revision() == IMX_CHIP_REVISION_1_1);
without this patch it was skipped.
> > --- a/arch/arm/mach-imx/mach-imx6q.c
> > +++ b/arch/arm/mach-imx/mach-imx6q.c
> > @@ -374,7 +374,8 @@ static void __init imx6q_init_late(void)
> > >
> > > ? ?* WAIT mode is broken on TO 1.0 and 1.1, so there is no point
> > > ? ?* to run cpuidle on them.
> > > ? ?*/
> > > - if (imx_get_soc_revision() > IMX_CHIP_REVISION_1_1)
> > > + if ((cpu_is_imx6q() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) ||
> > > + ????(cpu_is_imx6dl() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_0))
> > > ? imx6q_cpuidle_init();
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
2017-10-10 11:57 ` Leonard Crestez
@ 2017-10-10 12:26 ` Lucas Stach
0 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2017-10-10 12:26 UTC (permalink / raw)
To: linux-arm-kernel
Am Dienstag, den 10.10.2017, 14:57 +0300 schrieb Leonard Crestez:
> On Tue, 2017-10-10 at 13:44 +0200, Lucas Stach wrote:
> > Am Dienstag, den 10.10.2017, 14:20 +0300 schrieb Leonard Crestez:
> > > Enable cpuidle support on i.MX6DL starting from
> > > IMX_CHIP_REVISION_1_1.
> > Did you mean 1.0 here and in the subject? This would make sense AFAICS,
> > ?and is also in line with what the code change does.
>
> No, I do mean "1.1" for 6dl. It's a bit confusing because the code uses
> > instead of >= for comparison.
Uh, right. Given that I totally misread this on a quick glance, I would
prefer this to be >= ,but that's more a matter of personal taste.
> This patch results in imx6q_cpuidle_init getting called if
> (cpu_is_imx6dl() &&?imx_get_soc_revision() == IMX_CHIP_REVISION_1_1);
> without this patch it was skipped.
>
> > > --- a/arch/arm/mach-imx/mach-imx6q.c
> > > +++ b/arch/arm/mach-imx/mach-imx6q.c
> > > @@ -374,7 +374,8 @@ static void __init imx6q_init_late(void)
> > > >
> > > > ? ?* WAIT mode is broken on TO 1.0 and 1.1, so there is no point
> > > > ? ?* to run cpuidle on them.
> > > > ? ?*/
This comment is now out of sync with the code below.
> > > > - if (imx_get_soc_revision() > IMX_CHIP_REVISION_1_1)
> > > > + if ((cpu_is_imx6q() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_1) ||
> > > > + ????(cpu_is_imx6dl() && imx_get_soc_revision() > IMX_CHIP_REVISION_1_0))
> > > > ? imx6q_cpuidle_init();
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-10 12:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-10 11:20 [PATCH] ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1 Leonard Crestez
2017-10-10 11:44 ` Lucas Stach
2017-10-10 11:57 ` Leonard Crestez
2017-10-10 12:26 ` Lucas Stach
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).