[PATCH] fixup! mci: imx-esdhc: implement esdhc_poll using sdhci_read32_poll_timeout
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Jan 8 03:08:21 PST 2025
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 at 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
More information about the barebox
mailing list