From: Abel Vesa <abel.vesa@linaro.org>
To: Diogo Manuel Pais Silva <diogo.pais@ttcontrol.com>
Cc: Peng Fan <peng.fan@nxp.com>,
"abelvesa@kernel.org" <abelvesa@kernel.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"shawnguo@kernel.org" <shawnguo@kernel.org>,
"kernel@pengutronix.de" <kernel@pengutronix.de>,
"s.hauer@pengutronix.de" <s.hauer@pengutronix.de>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
"sboyd@kernel.org" <sboyd@kernel.org>,
"mturquette@baylibre.com" <mturquette@baylibre.com>,
"festevam@gmail.com" <festevam@gmail.com>,
"imx@lists.linux.dev" <imx@lists.linux.dev>,
"EMC: linux-kernel@vger.kernel.org"
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v2] clk: imx8qxp: Defer instead of failing probe
Date: Wed, 28 Aug 2024 11:31:26 +0300 [thread overview]
Message-ID: <Zs7gXhohOyQ/abOf@linaro.org> (raw)
In-Reply-To: <DU0PR01MB9382F1AC496F22A20C074BDE9DDC2@DU0PR01MB9382.eurprd01.prod.exchangelabs.com>
On 24-07-02 08:10:44, Diogo Manuel Pais Silva wrote:
> When of_clk_parent_fill is ran without all the parent clocks having been probed then the probe function will return -EINVAL, making it so that the probe isn't attempted again. As fw_devlink is on by default this does not usually happen, but if fw_devlink is disabled then it is very possible that the parent clock will be probed after the lpcg first attempt.
>
> Signed-off-by: Diogo Silva <diogo.pais@ttcontrol.com>
This patch doesn't apply cleanly.
Please respin.
Thanks!
> ---
> v2: change from dev_warn to dev_err_probe
> ---
> drivers/clk/imx/clk-imx8qxp-lpcg.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c
> index d0ccaa040225..7bd9b745edbe 100644
> --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c
> +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c
> @@ -225,8 +225,8 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_device *pdev,
>
> ret = of_clk_parent_fill(np, parent_names, count);
> if (ret != count) {
> - dev_err(&pdev->dev, "failed to get clock parent names\n");
> - return count;
> + return dev_err_probe(&pdev->dev, -EPROBE_DEFER,
> + "failed to get all clock parent names\n");
> }
>
> ret = of_property_read_string_array(np, "clock-output-names",
> --
> 2.34.1
next prev parent reply other threads:[~2024-08-28 8:31 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 11:54 [PATCH] clk: imx8qxp: Defer instead of failing probe Diogo Manuel Pais Silva
2024-07-01 23:55 ` Peng Fan
2024-07-02 8:10 ` [PATCH v2] " Diogo Manuel Pais Silva
2024-07-02 10:14 ` Peng Fan
2024-08-28 8:31 ` Abel Vesa [this message]
2024-09-02 14:18 ` [PATCH v3] " Diogo Manuel Pais Silva
2024-09-04 2:03 ` Peng Fan
2024-09-04 6:47 ` Diogo Manuel Pais Silva
2024-09-04 6:50 ` [PATCH v4] " Diogo Manuel Pais Silva
2024-09-05 18:35 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Zs7gXhohOyQ/abOf@linaro.org \
--to=abel.vesa@linaro.org \
--cc=abelvesa@kernel.org \
--cc=diogo.pais@ttcontrol.com \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=peng.fan@nxp.com \
--cc=s.hauer@pengutronix.de \
--cc=sboyd@kernel.org \
--cc=shawnguo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox