From: Heiko Stuebner <heiko@sntech.de>
To: Douglas Anderson <dianders@chromium.org>
Cc: Shawn Lin <shawn.lin@rock-chips.com>,
hal@halemmerich.com, linux-rockchip@lists.infradead.org,
mka@chromium.org, Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] clk: rockchip: Don't yell about bad mmc phases when getting
Date: Fri, 03 May 2019 23:51:01 +0200 [thread overview]
Message-ID: <1783321.PXM97fLzLk@phil> (raw)
In-Reply-To: <20190503212208.223232-1-dianders@chromium.org>
Am Freitag, 3. Mai 2019, 23:22:08 CEST schrieb Douglas Anderson:
> At boot time, my rk3288-veyron devices yell with 8 lines that look
> like this:
> [ 0.000000] rockchip_mmc_get_phase: invalid clk rate
>
> This is because the clock framework at clk_register() time tries to
> get the phase but we don't have a parent yet.
>
> While the errors appear to be harmless they are still ugly and, in
> general, we don't want yells like this in the log unless they are
> important.
>
> There's no real reason to be yelling here. We can still return
> -EINVAL to indicate that the phase makes no sense without a parent.
> If someone really tries to do tuning and the clock is reported as 0
> then we'll see the yells in rockchip_mmc_set_phase().
>
> Fixes: 4bf59902b500 ("clk: rockchip: Prevent calculating mmc phase if clock rate is zero")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
Thanks for fixing that. I always meant to handle that yell, but hadn't
found the time yet.
@Stephen, Mike: if you want to just apply this atop the other Rockchip
clock patches for 5.2, here is a
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Otherwise I'l queue that up for 5.3 later on.
Thanks
Heiko
> ---
>
> drivers/clk/rockchip/clk-mmc-phase.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/clk/rockchip/clk-mmc-phase.c b/drivers/clk/rockchip/clk-mmc-phase.c
> index 026a26bb702d..dbec84238ecd 100644
> --- a/drivers/clk/rockchip/clk-mmc-phase.c
> +++ b/drivers/clk/rockchip/clk-mmc-phase.c
> @@ -61,10 +61,8 @@ static int rockchip_mmc_get_phase(struct clk_hw *hw)
> u32 delay_num = 0;
>
> /* See the comment for rockchip_mmc_set_phase below */
> - if (!rate) {
> - pr_err("%s: invalid clk rate\n", __func__);
> + if (!rate)
> return -EINVAL;
> - }
>
> raw_value = readl(mmc_clock->reg) >> (mmc_clock->shift);
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Heiko Stuebner <heiko@sntech.de>
To: Douglas Anderson <dianders@chromium.org>
Cc: hal@halemmerich.com, Stephen Boyd <sboyd@kernel.org>,
Shawn Lin <shawn.lin@rock-chips.com>,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org,
linux-rockchip@lists.infradead.org, mka@chromium.org,
Michael Turquette <mturquette@baylibre.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] clk: rockchip: Don't yell about bad mmc phases when getting
Date: Fri, 03 May 2019 23:51:01 +0200 [thread overview]
Message-ID: <1783321.PXM97fLzLk@phil> (raw)
In-Reply-To: <20190503212208.223232-1-dianders@chromium.org>
Am Freitag, 3. Mai 2019, 23:22:08 CEST schrieb Douglas Anderson:
> At boot time, my rk3288-veyron devices yell with 8 lines that look
> like this:
> [ 0.000000] rockchip_mmc_get_phase: invalid clk rate
>
> This is because the clock framework at clk_register() time tries to
> get the phase but we don't have a parent yet.
>
> While the errors appear to be harmless they are still ugly and, in
> general, we don't want yells like this in the log unless they are
> important.
>
> There's no real reason to be yelling here. We can still return
> -EINVAL to indicate that the phase makes no sense without a parent.
> If someone really tries to do tuning and the clock is reported as 0
> then we'll see the yells in rockchip_mmc_set_phase().
>
> Fixes: 4bf59902b500 ("clk: rockchip: Prevent calculating mmc phase if clock rate is zero")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
Thanks for fixing that. I always meant to handle that yell, but hadn't
found the time yet.
@Stephen, Mike: if you want to just apply this atop the other Rockchip
clock patches for 5.2, here is a
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Otherwise I'l queue that up for 5.3 later on.
Thanks
Heiko
> ---
>
> drivers/clk/rockchip/clk-mmc-phase.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/clk/rockchip/clk-mmc-phase.c b/drivers/clk/rockchip/clk-mmc-phase.c
> index 026a26bb702d..dbec84238ecd 100644
> --- a/drivers/clk/rockchip/clk-mmc-phase.c
> +++ b/drivers/clk/rockchip/clk-mmc-phase.c
> @@ -61,10 +61,8 @@ static int rockchip_mmc_get_phase(struct clk_hw *hw)
> u32 delay_num = 0;
>
> /* See the comment for rockchip_mmc_set_phase below */
> - if (!rate) {
> - pr_err("%s: invalid clk rate\n", __func__);
> + if (!rate)
> return -EINVAL;
> - }
>
> raw_value = readl(mmc_clock->reg) >> (mmc_clock->shift);
>
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2019-05-03 21:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-03 21:22 [PATCH] clk: rockchip: Don't yell about bad mmc phases when getting Douglas Anderson
2019-05-03 21:22 ` Douglas Anderson
2019-05-03 21:51 ` Heiko Stuebner [this message]
2019-05-03 21:51 ` Heiko Stuebner
2019-05-03 22:11 ` Stephen Boyd
2019-05-03 22:11 ` Stephen Boyd
2019-05-03 22:11 ` Stephen Boyd
2019-05-09 8:46 ` Heiko Stuebner
2019-05-09 8:46 ` Heiko Stuebner
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=1783321.PXM97fLzLk@phil \
--to=heiko@sntech.de \
--cc=dianders@chromium.org \
--cc=hal@halemmerich.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mka@chromium.org \
--cc=mturquette@baylibre.com \
--cc=sboyd@kernel.org \
--cc=shawn.lin@rock-chips.com \
/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.