Skip to content

Commit b673282

Browse files
kettenisjannau
authored andcommitted
iopoll: Add readb_poll_sleep_timeout
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 <[email protected]> Reviewed-by: Tom Rini <[email protected]>
1 parent 5f0bda0 commit b673282

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

include/linux/iopoll.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@
4646
#define readx_poll_sleep_timeout(op, addr, val, cond, sleep_us, timeout_us) \
4747
read_poll_timeout(op, val, cond, sleep_us, timeout_us, addr)
4848

49+
#define readb_poll_sleep_timeout(addr, val, cond, sleep_us, timeout_us) \
50+
readx_poll_sleep_timeout(readb, addr, val, cond, sleep_us, timeout_us)
51+
4952
#define readl_poll_sleep_timeout(addr, val, cond, sleep_us, timeout_us) \
5053
readx_poll_sleep_timeout(readl, addr, val, cond, sleep_us, timeout_us)
5154

0 commit comments

Comments
 (0)