linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] ARM: mach-imx: pm-imx6: add missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul
@ 2016-08-09  8:24 Peter Chen
  2016-08-09 13:29 ` Fabio Estevam
  2016-08-15 13:12 ` Shawn Guo
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Chen @ 2016-08-09  8:24 UTC (permalink / raw)
  To: linux-arm-kernel

There is a missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul,
without it, the "standby" mode can't work well, the system can't be
resumed.

With this commit, the "standby" mode works well.

Cc: Anson Huang <anson.huang@nxp.com>
Cc: <stable@vger.kernel.org>
Fixes: ee4a5f838c84 ("ARM: imx: add suspend/resume support for i.mx6ul")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
---
 arch/arm/mach-imx/pm-imx6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c
index 58924b3..67bab74 100644
--- a/arch/arm/mach-imx/pm-imx6.c
+++ b/arch/arm/mach-imx/pm-imx6.c
@@ -295,7 +295,7 @@ int imx6_set_lpm(enum mxc_cpu_pwr_mode mode)
 		val &= ~BM_CLPCR_SBYOS;
 		if (cpu_is_imx6sl())
 			val |= BM_CLPCR_BYPASS_PMIC_READY;
-		if (cpu_is_imx6sl() || cpu_is_imx6sx())
+		if (cpu_is_imx6sl() || cpu_is_imx6sx() || cpu_is_imx6ul())
 			val |= BM_CLPCR_BYP_MMDC_CH0_LPM_HS;
 		else
 			val |= BM_CLPCR_BYP_MMDC_CH1_LPM_HS;
-- 
1.9.1

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

* [PATCH 1/1] ARM: mach-imx: pm-imx6: add missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul
  2016-08-09  8:24 [PATCH 1/1] ARM: mach-imx: pm-imx6: add missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul Peter Chen
@ 2016-08-09 13:29 ` Fabio Estevam
  2016-08-10  1:24   ` Peter Chen
  2016-08-15 13:12 ` Shawn Guo
  1 sibling, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2016-08-09 13:29 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Peter,

On Tue, Aug 9, 2016 at 5:24 AM, Peter Chen <peter.chen@nxp.com> wrote:
> There is a missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul,
> without it, the "standby" mode can't work well, the system can't be
> resumed.
>
> With this commit, the "standby" mode works well.

Have you tested 'echo mem > /sys/power/state' as well?

On my tests it does a reboot rather than going to suspend.

Thanks

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

* [PATCH 1/1] ARM: mach-imx: pm-imx6: add missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul
  2016-08-09 13:29 ` Fabio Estevam
@ 2016-08-10  1:24   ` Peter Chen
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Chen @ 2016-08-10  1:24 UTC (permalink / raw)
  To: linux-arm-kernel

 
>
>On Tue, Aug 9, 2016 at 5:24 AM, Peter Chen <peter.chen@nxp.com> wrote:
>> There is a missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul,
>> without it, the "standby" mode can't work well, the system can't be
>> resumed.
>>
>> With this commit, the "standby" mode works well.
>
>Have you tested 'echo mem > /sys/power/state' as well?
>
>On my tests it does a reboot rather than going to suspend.
>

It is another issue, current both 6sx and 6ul can't work for mem mode.
But I just can't wake up system, reboot is not observed.

Peter

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

* [PATCH 1/1] ARM: mach-imx: pm-imx6: add missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul
  2016-08-09  8:24 [PATCH 1/1] ARM: mach-imx: pm-imx6: add missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul Peter Chen
  2016-08-09 13:29 ` Fabio Estevam
@ 2016-08-15 13:12 ` Shawn Guo
  1 sibling, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2016-08-15 13:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Aug 09, 2016 at 04:24:43PM +0800, Peter Chen wrote:
> There is a missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul,
> without it, the "standby" mode can't work well, the system can't be
> resumed.
> 
> With this commit, the "standby" mode works well.
> 
> Cc: Anson Huang <anson.huang@nxp.com>
> Cc: <stable@vger.kernel.org>
> Fixes: ee4a5f838c84 ("ARM: imx: add suspend/resume support for i.mx6ul")
> Signed-off-by: Peter Chen <peter.chen@nxp.com>

Applied, thanks.

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

end of thread, other threads:[~2016-08-15 13:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09  8:24 [PATCH 1/1] ARM: mach-imx: pm-imx6: add missing BM_CLPCR_BYP_MMDC_CH0_LPM_HS setting for imx6ul Peter Chen
2016-08-09 13:29 ` Fabio Estevam
2016-08-10  1:24   ` Peter Chen
2016-08-15 13:12 ` Shawn Guo

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).