[PATCH v6 1/2] iopoll: Introduce memory-mapped IO polling macros

Mitchel Humpherys mitchelh at codeaurora.org
Tue Oct 21 10:12:32 PDT 2014


On Tue, Oct 14 2014 at 02:53:29 PM, Mitchel Humpherys <mitchelh at codeaurora.org> wrote:
> From: Matt Wagantall <mattw at codeaurora.org>
>
> 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 at gmail.com>
> Cc: Will Deacon <will.deacon at arm.com>
> Signed-off-by: Matt Wagantall <mattw at codeaurora.org>
> Signed-off-by: Mitchel Humpherys <mitchelh at codeaurora.org>
> ---
> Changes since v5:
>   - Use a shift instead of a divide in the poll loop.
> ---
>  include/linux/iopoll.h | 213 +++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 213 insertions(+)
>  create mode 100644 include/linux/iopoll.h

I realize I sent this at a bad time (ELCE) but were there any more
comments on this patch?


-Mitch

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project



More information about the linux-arm-kernel mailing list