mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: [PATCH 2/6] i.MX: HABv4: fix event status comparison
Date: Wed,  5 Jul 2023 16:42:15 +0200	[thread overview]
Message-ID: <20230705144219.504194-2-r.czerwinski@pengutronix.de> (raw)
In-Reply-To: <20230705144219.504194-1-r.czerwinski@pengutronix.de>

Instead of only printing events belonging to a certain level, print all
events that have a higher status than the current event. This fixes
event printing for i.MX8M based boards.

Fixes: 8b35facbb971 ("i.MX: HABv4: Improve HAB event printing")

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
---
 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 b6baa92c67..26463c8ce0 100644
--- a/drivers/hab/habv4.c
+++ b/drivers/hab/habv4.c
@@ -236,7 +236,7 @@ static enum hab_status imx8m_read_sram_events(enum hab_status status,
 		}
 	}
 	while (i < num_events) {
-		if (events[i]->status == status) {
+		if (events[i]->status >= status) {
 			if (internal_index == index) {
 				*bytes = sizeof(struct hab_event_record) +
 					be16_to_cpu(events[i]->hdr.len);
-- 
2.41.0




  reply	other threads:[~2023-07-05 14:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-05 14:42 [PATCH 1/6] kbuild: clean start*_*.{p,ps}imximg files Rouven Czerwinski
2023-07-05 14:42 ` Rouven Czerwinski [this message]
2023-07-05 14:42 ` [PATCH 3/6] i.MX: HABv4: extend support to i.MX8M SoCs Rouven Czerwinski
2023-07-26  6:31   ` [PATCH] fixup! " Ahmad Fatoum
2023-07-26  7:51     ` Marco Felsch
2023-07-05 14:42 ` [PATCH 4/6] ARM: i.MX: allow HAB for i.MX8M family Rouven Czerwinski
2023-07-05 14:42 ` [PATCH 5/6] ARM: i.MX: introduce build_imx8m_habv4img Rouven Czerwinski
2023-07-05 14:42 ` [PATCH 6/6] ARM: i.MX: convert i.MX8MP/MM EVK to helper Rouven Czerwinski
2023-07-05 14:50 ` [PATCH 1/6] kbuild: clean start*_*.{p,ps}imximg files Ahmad Fatoum
2023-07-05 15:10 ` Rouven Czerwinski

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=20230705144219.504194-2-r.czerwinski@pengutronix.de \
    --to=r.czerwinski@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