From: Caesar Wang <caesar.upstream@gmail.com>
To: Shawn Lin <shawn.lin@rock-chips.com>,
Eduardo Valentin <edubezval@gmail.com>,
Zhang Rui <rui.zhang@intel.com>
Cc: linux-rockchip@lists.infradead.org,
Caesar Wang <wxt@rock-chips.com>,
Heiko Stuebner <heiko@sntech.de>,
linux-pm@vger.kernel.org
Subject: Re: [PATCH] thermal: rockchip: improve the warning log
Date: Mon, 10 Oct 2016 11:53:20 +0800 [thread overview]
Message-ID: <57FB10B0.8080503@gmail.com> (raw)
In-Reply-To: <1476017358-26143-1-git-send-email-shawn.lin@rock-chips.com>
On 2016年10月09日 20:49, Shawn Lin wrote:
> There is no necessary to print warning agian and
> again if we don't add rockchip,grf for dt, otherwise
> I saw the following log when doning suspend-2-resume.
> We only need to print it once when parsing dt. It looks
> quite trivial but the log is apparently verbose.
>
> [ 26.615415] PM: early resume of devices complete after 1.539 msecs
> [ 26.622002] rk_tsadcv2_initialize: Missing rockchip,grf property
> [ 26.629359] rk_gmac-dwmac ff290000.ethernet: init for RGMII
> [ 26.639794] PM: resume of devices complete after 18.109 msecs
> [ 26.646925] Restarting tasks ... done.
>
> Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Reviewed-by: Caesar Wang <wxt@rock-chips.com>
> ---
>
> drivers/thermal/rockchip_thermal.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/thermal/rockchip_thermal.c b/drivers/thermal/rockchip_thermal.c
> index e227a9f..b811b0f 100644
> --- a/drivers/thermal/rockchip_thermal.c
> +++ b/drivers/thermal/rockchip_thermal.c
> @@ -524,11 +524,6 @@ static void rk_tsadcv2_initialize(struct regmap *grf, void __iomem *regs,
> regs + TSADCV2_AUTO_PERIOD_HT);
> writel_relaxed(TSADCV2_HIGHT_TSHUT_DEBOUNCE_COUNT,
> regs + TSADCV2_HIGHT_TSHUT_DEBOUNCE);
> -
> - if (IS_ERR(grf)) {
> - pr_warn("%s: Missing rockchip,grf property\n", __func__);
> - return;
> - }
> }
>
> /**
> @@ -971,6 +966,8 @@ static int rockchip_configure_from_dt(struct device *dev,
> * need this property.
> */
> thermal->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf");
> + if (IS_ERR(thermal->grf))
> + dev_warn(dev, "Missing rockchip,grf property\n");
>
> return 0;
> }
next prev parent reply other threads:[~2016-10-10 3:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-09 12:49 [PATCH] thermal: rockchip: improve the warning log Shawn Lin
2016-10-10 3:53 ` Caesar Wang [this message]
2016-10-10 20:28 ` Heiko Stuebner
2016-10-11 1:16 ` Shawn Lin
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=57FB10B0.8080503@gmail.com \
--to=caesar.upstream@gmail.com \
--cc=edubezval@gmail.com \
--cc=heiko@sntech.de \
--cc=linux-pm@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=rui.zhang@intel.com \
--cc=shawn.lin@rock-chips.com \
--cc=wxt@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.