Skip to contentSkip to conversation

ARM: mx6: Only check for 1.2GHz for mx6quad

PATCH New Fabio Estevam 2 participants 2 messages Jul 1, 2014

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ARM: mx6: Only check for 1.2GHz for mx6quad

From: Fabio Estevam <[email protected]>

It is only the mx6quad variant that can run up to 1.2GHz, so add the check accordingly.

This avoids getting the following warning on a mx6solo:

failed to disable 1.2 GHz OPP

---
 arch/arm/mach-imx/mach-imx6q.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/mach-imx6q.c +1 -1
index e60456d..9b3a233 100644
@@ -320,7 +320,7 @@ static void __init imx6q_opp_check_speed_grading(struct device *cpu_dev)
 	val >>= OCOTP_CFG3_SPEED_SHIFT;
 	val &= 0x3;
 
-	if (val != OCOTP_CFG3_SPEED_1P2GHZ)
+	if ((val != OCOTP_CFG3_SPEED_1P2GHZ) && cpu_is_imx6q())
 		if (dev_pm_opp_disable(cpu_dev, 1200000000))
 			pr_warn("failed to disable 1.2 GHz OPP\n");
 	if (val < OCOTP_CFG3_SPEED_996MHZ)
Signature · 1 line
1.8.3.2
Applied
#1 lore raw

PATCH 1/1 ARM: mx6: Only check for 1.2GHz for mx6quad

Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

It is only the mx6quad variant that can run up to 1.2GHz, so add the check accordingly.

This avoids getting the following warning on a mx6solo:

failed to disable 1.2 GHz OPP

Applied, thanks.