Message ID | 20200502071503.11493-3-jagan@amarulasolutions.com |
---|---|
State | Accepted |
Commit | ce786ae3913f3a006ec959cc9538d6c4d4114345 |
Headers | show |
Series | [v3,1/3] iopoll: Add read_poll_timeout common API | expand |
diff --git a/include/linux/iopoll.h b/include/linux/iopoll.h index 76d2f951c1..30cdea0cdc 100644 --- a/include/linux/iopoll.h +++ b/include/linux/iopoll.h @@ -43,6 +43,12 @@ (cond) ? 0 : -ETIMEDOUT; \ }) +#define readx_poll_sleep_timeout(op, addr, val, cond, sleep_us, timeout_us) \ + read_poll_timeout(op, 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) + #define readx_poll_timeout(op, addr, val, cond, timeout_us) \ read_poll_timeout(op, addr, val, cond, false, timeout_us)
Add readl poll API with sleep and timeout support. This change is referenced from Linux from below commit: commit <5f5323a14cad19323060a8cbf9d96f2280a462dd> ("iopoll: introduce read_poll_timeout macro") Signed-off-by: Jagan Teki <jagan at amarulasolutions.com> --- Changes for v3: - add readx_poll_sleep_timeout include/linux/iopoll.h | 6 ++++++ 1 file changed, 6 insertions(+)