From: Roland Hieber <r.hieber@pengutronix.de>
To: Barebox Mailing List <barebox@lists.infradead.org>
Cc: Roland Hieber <r.hieber@pengutronix.de>
Subject: [PATCH] fixup! drivers: caam: add RNG software self-test
Date: Tue, 4 Dec 2018 09:20:38 +0100 [thread overview]
Message-ID: <20181204082038.360-1-r.hieber@pengutronix.de> (raw)
In-Reply-To: <20181204074958.x6bntw4czthc75ye@pengutronix.de>
Demote this warning to an info because the failure is expected and we
can work around it. The self-test will still error afterwards in case of
failure.
Signed-off-by: Roland Hieber <r.hieber@pengutronix.de>
---
On Tue, Dec 04, 2018 at 08:49:58AM +0100, Sascha Hauer wrote:
> On Mon, Dec 03, 2018 at 11:52:26AM +0100, Roland Hieber wrote:
> > Hi Sascha,
> >
> > > + pr_notice("RNG software self-test passed\n");
> >
> > I noticed that you downgraded this to a pr_info() when applying the
> > patch, is there a reason? pr_warn()s have the "WARNING:" prefix,
> > pr_notice()s have a "NOTICE:" prefix, but pr_info()s don't have any
> > prefix. I think this one should be a pr_notice because it overrides the
> > pr_warn("RNG self-test failure detected...") from HAB and tells the user
> > that this warning is no longer relevant. With pr_info(), I think it will
> > get lost between all the other infos.
>
> I can follow this argumentation, but then I argue we should lower the
> priority of the failure detected message to to pr_info or even pr_debug,
> because the failure is pretty much expected, it is correctly being
> worked around and there's nothing we can do about the failure.
Right, that argumentation seems more reasonable to me.
- Roland
---
drivers/hab/habv4.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c
index bab458ae32..cca46c1490 100644
--- a/drivers/hab/habv4.c
+++ b/drivers/hab/habv4.c
@@ -455,7 +455,7 @@ static int habv4_get_status(const struct habv4_rvt *rvt)
}
if (is_rng_fail_event) {
- pr_warning("RNG self-test failure detected, will run software self-test\n");
+ pr_info("RNG self-test failure detected, will run software self-test\n");
habv4_need_rng_software_self_test = true;
} else {
pr_err("-------- HAB warning Event %d --------\n", index);
--
2.19.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2018-12-04 8:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-29 13:42 [PATCH v2 1/2] " Roland Hieber
2018-11-29 13:42 ` [PATCH v2 2/2] i.MX: HABv4: always print HAB status at boot time Roland Hieber
2018-12-03 8:01 ` [PATCH v2 1/2] drivers: caam: add RNG software self-test Sascha Hauer
2018-12-03 10:15 ` [PATCH] fixup! " Roland Hieber
2018-12-04 7:31 ` Sascha Hauer
2018-12-03 10:52 ` [PATCH v2 1/2] " Roland Hieber
2018-12-04 7:49 ` Sascha Hauer
2018-12-04 8:20 ` Roland Hieber [this message]
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=20181204082038.360-1-r.hieber@pengutronix.de \
--to=r.hieber@pengutronix.de \
--cc=barebox@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox