regmap: add iopoll-like atomic polling macro
authorSameer Pujar <spujar@nvidia.com>
Thu, 9 Jan 2020 05:09:50 +0000 (10:39 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jan 2020 21:23:36 +0000 (21:23 +0000)
commit50816a4c39263913d8cfd1ee32f90102679606c6
tree1de762d0737040ee4d21fd77c54c2981d785bcad
parent14e01b5f335881c435d075797b8b7c64437f9bff
regmap: add iopoll-like atomic polling macro

This patch adds a macro 'regmap_read_poll_timeout_atomic' that works
similar to 'readx_poll_timeout_atomic' defined in linux/iopoll.h; This
is atomic version of already available 'regmap_read_poll_timeout' macro.

It should be noted that above atomic macro cannot be used by all regmaps.
If the regmap is set up for atomic use (flat or no cache and MMIO) then
only it can use.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Link: https://lore.kernel.org/r/1578546590-24737-1-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regmap.h