firmware: imx: scu-pd: ignore power domain not owned
authorPeng Fan <peng.fan@nxp.com>
Tue, 8 Sep 2020 10:07:01 +0000 (18:07 +0800)
committerShawn Guo <shawnguo@kernel.org>
Sun, 13 Sep 2020 01:45:53 +0000 (09:45 +0800)
commite2314cf5af30d5e87cbf89fdef1a0fe4efee4552
tree849e3d88e3e6978dbf0eaee901bb64dc87a70f95
parentb663b798d04fb73f1ad4d54c46582d2fde7a76d6
firmware: imx: scu-pd: ignore power domain not owned

Should not register power domain that not owned by current
partition.

Alought power domains will not be registered when power on failure,
we have to let CPU waste more cycles.

Whether power on or owned check, both need communicate with SCU,
but with owned check, we no need to run more code path to save CPU
cycles.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/firmware/imx/scu-pd.c