]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx: gpc: Initialize all power domains
authorFabio Estevam <fabio.estevam@nxp.com>
Sat, 22 Oct 2016 12:20:55 +0000 (10:20 -0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 24 Oct 2016 07:12:57 +0000 (15:12 +0800)
commitf7764f5cd9b0641072b4bc3c6b4f53aec7ff2bb4
treecd9f0caeca23cd484a64dfdab9e250e4e2d0bb2a
parent980a3f8bce4ef2d67bf1d76e1ff3cd200a67c1a9
ARM: imx: gpc: Initialize all power domains

Since commit 456834d9fe1370 ("PM / Domains: Verify the PM domain is present
when adding a provider") the following regression is observed on imx6:

imx-gpc: probe of 20dc000.gpc failed with error -22

The gpc probe fails because of_genpd_add_provider_onecell() now checks
if all the domains are initialized via pm_genpd_present() function
and it fails because not all the power domains are initialized.

In order to fix this error, initialize all the power domains from
imx_gpc_domains[], not only the imx6q_pu_domain.base one.

Reported-by: Olof's autobooter <build@lixom.net>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/gpc.c