From: mturquette@linaro.org (Mike Turquette)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clkdev: Don't print errors on probe defer
Date: Tue, 17 Jun 2014 15:33:05 -0700 [thread overview]
Message-ID: <20140617223305.32686.15540@quantum> (raw)
In-Reply-To: <1402702591-21087-1-git-send-email-sboyd@codeaurora.org>
Quoting Stephen Boyd (2014-06-13 16:36:31)
> This error message can spam the logs if you have lots of probe
> deferals due to missing clocks. Just silence the error in this
> case because the driver should try again later.
>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Looks OK to me. Russell?
Regards,
Mike
> ---
> drivers/clk/clkdev.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
> index f890b901c6bc..da4bda8b7fc7 100644
> --- a/drivers/clk/clkdev.c
> +++ b/drivers/clk/clkdev.c
> @@ -101,8 +101,9 @@ struct clk *of_clk_get_by_name(struct device_node *np, const char *name)
> if (!IS_ERR(clk))
> break;
> else if (name && index >= 0) {
> - pr_err("ERROR: could not get clock %s:%s(%i)\n",
> - np->full_name, name ? name : "", index);
> + if (PTR_ERR(clk) != -EPROBE_DEFER)
> + pr_err("ERROR: could not get clock %s:%s(%i)\n",
> + np->full_name, name ? name : "", index);
> return clk;
> }
>
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> hosted by The Linux Foundation
>
WARNING: multiple messages have this Message-ID (diff)
From: Mike Turquette <mturquette@linaro.org>
To: Stephen Boyd <sboyd@codeaurora.org>,
"Russell King" <linux@arm.linux.org.uk>
Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] clkdev: Don't print errors on probe defer
Date: Tue, 17 Jun 2014 15:33:05 -0700 [thread overview]
Message-ID: <20140617223305.32686.15540@quantum> (raw)
In-Reply-To: <1402702591-21087-1-git-send-email-sboyd@codeaurora.org>
Quoting Stephen Boyd (2014-06-13 16:36:31)
> This error message can spam the logs if you have lots of probe
> deferals due to missing clocks. Just silence the error in this
> case because the driver should try again later.
>
> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Looks OK to me. Russell?
Regards,
Mike
> ---
> drivers/clk/clkdev.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
> index f890b901c6bc..da4bda8b7fc7 100644
> --- a/drivers/clk/clkdev.c
> +++ b/drivers/clk/clkdev.c
> @@ -101,8 +101,9 @@ struct clk *of_clk_get_by_name(struct device_node *np, const char *name)
> if (!IS_ERR(clk))
> break;
> else if (name && index >= 0) {
> - pr_err("ERROR: could not get clock %s:%s(%i)\n",
> - np->full_name, name ? name : "", index);
> + if (PTR_ERR(clk) != -EPROBE_DEFER)
> + pr_err("ERROR: could not get clock %s:%s(%i)\n",
> + np->full_name, name ? name : "", index);
> return clk;
> }
>
> --
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> hosted by The Linux Foundation
>
next prev parent reply other threads:[~2014-06-17 22:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 23:36 [PATCH] clkdev: Don't print errors on probe defer Stephen Boyd
2014-06-13 23:36 ` Stephen Boyd
2014-06-17 22:33 ` Mike Turquette [this message]
2014-06-17 22:33 ` Mike Turquette
2014-06-17 22:48 ` Russell King - ARM Linux
2014-06-17 22:48 ` Russell King - ARM Linux
2014-06-18 17:24 ` Mike Turquette
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=20140617223305.32686.15540@quantum \
--to=mturquette@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.