[PATCH v2 2/3] iopoll: Add readb_poll_sleep_timeout
Mark Kettenis
kettenis at openbsd.org
Mon Sep 29 21:52:40 CEST 2025
Add a variant of readl_poll_sleep_timeout that reads a single
byte to match the readb_poll_timeout API that Linux has.
Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
---
include/linux/iopoll.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h
index 0ee2bddaa83..955ab881006 100644
--- a/include/linux/iopoll.h
+++ b/include/linux/iopoll.h
@@ -46,6 +46,9 @@
#define readx_poll_sleep_timeout(op, addr, val, cond, sleep_us, timeout_us) \
read_poll_timeout(op, val, cond, sleep_us, timeout_us, addr)
+#define readb_poll_sleep_timeout(addr, val, cond, sleep_us, timeout_us) \
+ readx_poll_sleep_timeout(readb, addr, val, cond, sleep_us, timeout_us)
+
#define readl_poll_sleep_timeout(addr, val, cond, sleep_us, timeout_us) \
readx_poll_sleep_timeout(readl, addr, val, cond, sleep_us, timeout_us)
--
2.50.1
More information about the U-Boot
mailing list