mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! mci: imx-esdhc: implement esdhc_poll using sdhci_read32_poll_timeout
Date: Wed,  8 Jan 2025 12:08:21 +0100	[thread overview]
Message-ID: <20250108110821.1931446-1-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250108110420.1850995-1-a.fatoum@pengutronix.de>

It's unlikely that timeout_us would expand to something inducing
breakage here, but better safe than sorry.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>

---
 include/linux/iopoll.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h
index 36a2541eb4ce..b259109078e4 100644
--- a/include/linux/iopoll.h
+++ b/include/linux/iopoll.h
@@ -43,7 +43,7 @@
  */
 #define read_poll_timeout(op, val, cond, timeout_us, args...)	\
 ({ \
-	uint64_t start = timeout_us ? read_poll_get_time_ns() : 0; \
+	uint64_t start = (timeout_us) ? read_poll_get_time_ns() : 0; \
 	for (;;) { \
 		(val) = op(args); \
 		if (cond) \
-- 
2.39.5




  parent reply	other threads:[~2025-01-08 11:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-08 11:04 [PATCH 1/2] include: linux/iopoll.h: add optional PBL support Ahmad Fatoum
2025-01-08 11:04 ` [PATCH 2/2] mci: imx-esdhc: implement esdhc_poll using sdhci_read32_poll_timeout Ahmad Fatoum
2025-01-08 11:08 ` Ahmad Fatoum [this message]
2025-01-08 14:23   ` (subset) [PATCH] fixup! " Sascha Hauer
2025-01-08 14:23 ` [PATCH 1/2] include: linux/iopoll.h: add optional PBL support Sascha Hauer
2025-01-08 15:43 ` Sascha Hauer

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=20250108110821.1931446-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@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