diff options
author | Robin Gong <b38343@freescale.com> | 2013-03-15 12:37:04 +0800 |
---|---|---|
committer | Robin Gong <b38343@freescale.com> | 2013-03-15 12:59:30 +0800 |
commit | f31e3f3dd53e2b8869a33af54babbb43e696fabf (patch) | |
tree | 9b3e91e200bd25a66526027626b1f013c750b898 /arch | |
parent | e58db7bada848c0bb72dfe31b3dadb4ab86a3567 (diff) |
ENGR00254457 mx6dl: fix mx6dl TO1.1 can't enter 'mem'
The previous patch ENGR00251630 didn't notice mx6q_revision() will
return -EINVAL and will match 'mx6q_revision()<IMX_CHIP_REVISION_1_1'
,then mx6dl TO1.1 will also change suspend state to 'standby'.
Signed-off-by: Robin Gong <b38343@freescale.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-mx6/pm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mx6/pm.c b/arch/arm/mach-mx6/pm.c index 9f736e4dbce4..6e306c279d20 100644 --- a/arch/arm/mach-mx6/pm.c +++ b/arch/arm/mach-mx6/pm.c @@ -317,8 +317,8 @@ static int mx6_suspend_enter(suspend_state_t state) * ARM_POWER_OFF mode. */ if (state == PM_SUSPEND_MEM && - ((mx6dl_revision() == IMX_CHIP_REVISION_1_0) || mx6q_revision() - <= IMX_CHIP_REVISION_1_1)) { + ((mx6dl_revision() == IMX_CHIP_REVISION_1_0) || + (cpu_is_mx6q() && mx6q_revision() <= IMX_CHIP_REVISION_1_1))) { state = PM_SUSPEND_STANDBY; } |