MLK-17363-2 imx8: pm-domain: clocks list should be initialized only once.
authorRanjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Wed, 10 Jan 2018 17:52:54 +0000 (11:52 -0600)
committerNitin Garg <nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:52:41 +0000 (14:52 -0500)
The clocks list associated with a PD is the same across all devices
attached to the same PD. Re-initializing it each time a new device is
attached results in missing some clocks.

[ Aisheng: "Improve commit message" ]

Reviewed-by: Anson Huang <anson.huang@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
drivers/soc/imx/pm-domains.c

index 37a942f..46de33e 100644 (file)
@@ -205,7 +205,6 @@ static int imx8_attach_dev(struct generic_pm_domain *genpd, struct device *dev)
        int rc, index, num_clks;
 
        pd = container_of(genpd, struct imx8_pm_domain, pd);
-       INIT_LIST_HEAD(&pd->clks);
 
        num_clks = of_count_phandle_with_args(node, "assigned-clocks",
                                                "#clock-cells");