Commit 7a35f5ab authored by Vikram Mulukutla's avatar Vikram Mulukutla
Browse files

iopoll: Introduce the readl_iopoll_timeout_noirq macro



It is sometimes necessary to poll a register - until a
certain value is read - in atomic context. Introduce
a macro that allows one to specify the maximum number
of reads attempts and the number of microseconds to
delay between each read attempt.

Change-Id: Ice27e78cf4e156da9de00d58783c220bdbc758d3
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent ff859fd3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment