From patchwork Sat Jun 27 07:53:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 243017 List-Id: U-Boot discussion From: peng.fan at nxp.com (Peng Fan) Date: Sat, 27 Jun 2020 15:53:54 +0800 Subject: [PATCH V2 1/2] clk: imx8mm: fix clk set parent Message-ID: <20200627075355.8043-1-peng.fan@nxp.com> Fix clk set parent, so we could still have correct clocks after parent changing. Signed-off-by: Peng Fan --- V2: Split fix into a single patch of https://patchwork.ozlabs.org/project/uboot/patch/20200503125956.6244-1-peng.fan at nxp.com/ drivers/clk/imx/clk-imx8mm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 66c9601b0c..d609fad7ac 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -191,7 +191,10 @@ static int imx8mm_clk_set_parent(struct clk *clk, struct clk *parent) if (ret) return ret; - return clk_set_parent(c, cp); + ret = clk_set_parent(c, cp); + c->dev->parent = cp->dev; + + return ret; } static struct clk_ops imx8mm_clk_ops = {