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:
Vikram Mulukutla <markivx@codeaurora.org>
Loading
Please sign in to comment