aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/imx
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2021-03-17 10:31:17 +0100
committerShawn Guo <shawnguo@kernel.org>2021-03-29 08:59:33 +0800
commit7c6b0892b0c5009d5eb8715070a18862f18d7df5 (patch)
treee10a15dc510eb415cebbe4085ee3373bb4310bd6 /drivers/firmware/imx
parentfirmware: imx: scu-pd: do not power off console domain (diff)
downloadlinux-dev-7c6b0892b0c5009d5eb8715070a18862f18d7df5.tar.xz
linux-dev-7c6b0892b0c5009d5eb8715070a18862f18d7df5.zip
firmware: imx: scu-pd: Update comments for single global power domain
Since the introduction of the PM domain support for the scu-pd, the genpd framework has been continuously improved. More preciously, using a single global power domain can quite easily be deployed for imx platforms. To avoid confusions, let's therefore make an update to the comments about the missing pieces. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/firmware/imx')
-rw-r--r--drivers/firmware/imx/scu-pd.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c
index 338800d16c65..34075436f0f9 100644
--- a/drivers/firmware/imx/scu-pd.c
+++ b/drivers/firmware/imx/scu-pd.c
@@ -29,6 +29,10 @@
* The framework needs some proper extension to support multi power
* domain cases.
*
+ * Update: Genpd assigns the ->of_node for the virtual device before it
+ * invokes ->attach_dev() callback, hence parsing for device resources via
+ * DT should work fine.
+ *
* 2. It also breaks most of current drivers as the driver probe sequence
* behavior changed if removing ->power_on|off() callback and use
* ->start() and ->stop() instead. genpd_dev_pm_attach will only power
@@ -39,8 +43,11 @@
* domain enabled will trigger a HW access error. That means we need fix
* most drivers probe sequence with proper runtime pm.
*
- * In summary, we need fix above two issue before being able to switch to
- * the "single global power domain" way.
+ * Update: Runtime PM support isn't necessary. Instead, this can easily be
+ * fixed in drivers by adding a call to dev_pm_domain_start() during probe.
+ *
+ * In summary, the second part needs to be addressed via minor updates to the
+ * relevant drivers, before the "single global power domain" model can be used.
*
*/