]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iopoll: Introduce memory-mapped IO polling macros
authorMatt Wagantall <mattw@codeaurora.org>
Mon, 15 Dec 2014 23:47:23 +0000 (23:47 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 19 Jan 2015 16:11:59 +0000 (16:11 +0000)
commit54c523127bcca986c6f9b04c7b56a949ea011899
tree767e7fda0df1eddf25229c447bbe316bda4446b0
parent3c8567d1cac0fa4c44ddcf0a956cae0bf2a348f3
iopoll: Introduce memory-mapped IO polling macros

It is sometimes necessary to poll a memory-mapped register until its value
satisfies some condition. Introduce a family of convenience macros that do
this. Tight-looping, sleeping, and timing out can all be accomplished using
these macros.

Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Robert Elliott <elliott@hp.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
include/linux/iopoll.h [new file with mode: 0644]