]> git.ipfire.org Git - thirdparty/u-boot.git/commit
iopoll: Add read_poll_timeout common API
authorJagan Teki <jagan@amarulasolutions.com>
Sat, 2 May 2020 07:15:01 +0000 (12:45 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Sun, 10 May 2020 20:00:49 +0000 (01:30 +0530)
commit54232474d6fe9214942b79fa2608c3ad1d9f07d0
tree0586dcd3c47b15d144ffc3dc0419e0347cdc2e3c
parentd7c56616dcc8cac6f5de8e605fd00486a59fef50
iopoll: Add read_poll_timeout common API

Add read_poll_timeout common API similar to Linux iopoll.

readx_poll_timeout will trigger read_poll_timeout with
proper op. This will help to extend the functionalities
like sleep_us to poll timeout in future.

This change is referenced from Linux from below commit:
commit <5f5323a14cad19323060a8cbf9d96f2280a462dd> ("iopoll:
introduce read_poll_timeout macro")

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
include/linux/iopoll.h