ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
Subsystems (3)
PATCH 1/1 ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
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.
--- arch/arm/mach-imx/mach-imx6q.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-imx/mach-imx6q.c +2 -1
@@ -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 )) {
Signature · 1 line
2.7.4
PATCH 1/1 ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
Am Dienstag, den 10.10.2017, 14:20 +0300 schrieb Leonard Crestez:
Quoted 2 lines
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.
Quoted 23 lines
This also makes the code cleaner because 6q and 6dl actually have different revision histories.
Quoted 2 lines
Signed-off-by Bai Ping <[email protected]>Signed-off-by Leonard Crestez <[email protected]>---
?arch/arm/mach-imx/mach-imx6q.c | 3 ++-
?1 file changed, 2 insertions(+), 1 deletion(-)arch/arm/mach-imx/mach-imx6q.c +0
-0@@ -374,7 +374,8 @@ static void __init imx6q_init_late(void)Quoted 7 lines
? ?* WAIT mode is broken on TO 1.0 and 1.1, so there is no point
? ?* to run cpuidle on them.
? ?*/arch/arm/mach-imx/mach-imx6q.c +2
-1-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();?
Quoted 1 line
? if (
IS_ENABLED(CONFIG_ARM_IMX6Q_CPUFREQ)) {
PATCH 1/1 ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
Quoted 7 lines · Lucas Stach
Am Dienstag, den 10.10.2017, 14:20 +0300 schrieb Leonard Crestez:
Quoted 2 lines
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
Quoted 1 line
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.
Quoted 11 lines
Quoted 11 lines
arch/arm/mach-imx/mach-imx6q.c +0
-0@@ -374,7 +374,8 @@ static void __init imx6q_init_late(void)Quoted 8 lines
? ?* WAIT mode is broken on TO 1.0 and 1.1, so there is no point
? ?* to run cpuidle on them.
? ?*/arch/arm/mach-imx/mach-imx6q.c +2
-1-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();
PATCH 1/1 ARM: imx: Enable cpuidle for i.MX6DL starting at 1.1
Am Dienstag, den 10.10.2017, 14:57 +0300 schrieb Leonard Crestez:
Quoted 9 lines · Lucas Stach
Quoted 5 lines
Am Dienstag, den 10.10.2017, 14:20 +0300 schrieb Leonard Crestez:
Quoted 2 lines
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
Quoted 1 line
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.
Quoted 11 lines
This patch results in
imx6q_cpuidle_initgetting called if (cpu_is_imx6dl()&&?imx_get_soc_revision() ==IMX_CHIP_REVISION_1_1); without this patch it was skipped.Quoted 7 lines
Quoted 7 lines
arch/arm/mach-imx/mach-imx6q.c +0
-0@@ -374,7 +374,8 @@ static void __init imx6q_init_late(void)Quoted 4 lines
? ?* 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.
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
arch/arm/mach-imx/mach-imx6q.c +2
-1-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();