Thread (1 message) 1 message, 1 author, 2014-12-15

[PATCH v9] iopoll: Introduce memory-mapped IO polling macros

From: Mitchel Humpherys <hidden>
Date: 2014-12-15 23:44:33
Also in: linux-iommu, lkml

On Mon, Dec 15 2014 at 03:31:20 PM, Mitchel Humpherys [off-list ref] wrote:
From: Matt Wagantall <redacted>

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 <redacted>
Cc: Will Deacon <redacted>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Robert Elliott <redacted>
Signed-off-by: Matt Wagantall <redacted>
Signed-off-by: Mitchel Humpherys <redacted>
---
v8..v9:
  - Added note in comments about max sleep time (Rob Elliott)
Sorry, just noticed that I somehow dropped these additional comments
that Rob requested...  Let me send a v10 that actually includes them.
Please ignore this version.


-Mitch

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help