devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] soc: imx: gpc: ARM power domain should be always-on
@ 2018-01-23 16:42 Anson Huang
       [not found] ` <1516725734-32745-1-git-send-email-Anson.Huang-3arQi8VN3Tc@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Anson Huang @ 2018-01-23 16:42 UTC (permalink / raw)
  To: shawnguo, kernel, fabio.estevam, robh+dt, aisheng.dong,
	mark.rutland, linux
  Cc: Linux-imx, linux-arm-kernel, devicetree, linux-kernel

ARM power domain does NOT support runtime off, always-on
flag should be set to avoid incorrect power state in
pm_genpd_summary:

Before:

root@imx6qpdlsolox:~# cat /sys/kernel/debug/pm_genpd/pm_genpd_summary
domain                          status          slaves
    /device                                             runtime status
----------------------------------------------------------------------
ARM                             off-0

After:

root@imx6qpdlsolox:~# cat /sys/kernel/debug/pm_genpd/pm_genpd_summary
domain                          status          slaves
    /device                                             runtime status
----------------------------------------------------------------------
ARM                             on

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 drivers/soc/imx/gpc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c
index 53f7275..6cafa9b 100644
--- a/drivers/soc/imx/gpc.c
+++ b/drivers/soc/imx/gpc.c
@@ -254,6 +254,7 @@ static struct imx_pm_domain imx_gpc_domains[] = {
 	{
 		.base = {
 			.name = "ARM",
+			.flags = GENPD_FLAG_ALWAYS_ON,
 		},
 	}, {
 		.base = {
-- 
2.7.4

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

end of thread, other threads:[~2018-02-05  6:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-23 16:42 [PATCH 1/2] soc: imx: gpc: ARM power domain should be always-on Anson Huang
     [not found] ` <1516725734-32745-1-git-send-email-Anson.Huang-3arQi8VN3Tc@public.gmane.org>
2018-01-23 13:47   ` Lucas Stach
2018-01-23 16:42   ` [PATCH 2/2] ARM: dts: imx6sx: add ARM power domain support Anson Huang
     [not found]     ` <1516725734-32745-2-git-send-email-Anson.Huang-3arQi8VN3Tc@public.gmane.org>
2018-01-23 13:48       ` Lucas Stach
2018-01-25 10:33       ` Dong Aisheng
2018-01-25 10:29   ` [PATCH 1/2] soc: imx: gpc: ARM power domain should be always-on Dong Aisheng
2018-02-05  6:33   ` 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).