LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] clk: imx: pll14xx: Return error if pll type is invalid
@ 2020-02-21 6:31 Anson Huang
2020-02-21 23:57 ` Stephen Boyd
2020-02-24 7:43 ` Shawn Guo
0 siblings, 2 replies; 3+ messages in thread
From: Anson Huang @ 2020-02-21 6:31 UTC (permalink / raw)
To: mturquette, sboyd, shawnguo, s.hauer, kernel, festevam,
leonard.crestez, peng.fan, yuehaibing, ping.bai, linux-clk,
linux-arm-kernel, linux-kernel
Cc: Linux-imx
When pll type is invalid, ONLY output error message is NOT enough,
should return error immediately.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/clk-pll14xx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c
index 37e311e..a83bbbe 100644
--- a/drivers/clk/imx/clk-pll14xx.c
+++ b/drivers/clk/imx/clk-pll14xx.c
@@ -410,6 +410,8 @@ struct clk_hw *imx_clk_hw_pll14xx(const char *name, const char *parent_name,
default:
pr_err("%s: Unknown pll type for pll clk %s\n",
__func__, name);
+ kfree(pll);
+ return ERR_PTR(-EINVAL);
};
pll->base = base;
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: imx: pll14xx: Return error if pll type is invalid
2020-02-21 6:31 [PATCH] clk: imx: pll14xx: Return error if pll type is invalid Anson Huang
@ 2020-02-21 23:57 ` Stephen Boyd
2020-02-24 7:43 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2020-02-21 23:57 UTC (permalink / raw)
To: Anson Huang, festevam, kernel, leonard.crestez, linux-arm-kernel,
linux-clk, linux-kernel, mturquette, peng.fan, ping.bai, s.hauer,
shawnguo, yuehaibing
Cc: Linux-imx
Quoting Anson Huang (2020-02-20 22:31:56)
> When pll type is invalid, ONLY output error message is NOT enough,
> should return error immediately.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: imx: pll14xx: Return error if pll type is invalid
2020-02-21 6:31 [PATCH] clk: imx: pll14xx: Return error if pll type is invalid Anson Huang
2020-02-21 23:57 ` Stephen Boyd
@ 2020-02-24 7:43 ` Shawn Guo
1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2020-02-24 7:43 UTC (permalink / raw)
To: Anson Huang
Cc: mturquette, sboyd, s.hauer, kernel, festevam, leonard.crestez,
peng.fan, yuehaibing, ping.bai, linux-clk, linux-arm-kernel,
linux-kernel, Linux-imx
On Fri, Feb 21, 2020 at 02:31:56PM +0800, Anson Huang wrote:
> When pll type is invalid, ONLY output error message is NOT enough,
> should return error immediately.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-24 7:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21 6:31 [PATCH] clk: imx: pll14xx: Return error if pll type is invalid Anson Huang
2020-02-21 23:57 ` Stephen Boyd
2020-02-24 7:43 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).