regmap: Add hardware spinlock support
authorBaolin Wang <baolin.wang@linaro.org>
Wed, 1 Nov 2017 02:11:55 +0000 (10:11 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 1 Nov 2017 10:06:29 +0000 (10:06 +0000)
commit8698b9364710e7bac84b3af07dd410e39c8c2e08
tree78f4e1c6341aa609c76583fd9030241c72b2e3cd
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
regmap: Add hardware spinlock support

On some platforms, when reading or writing some special registers through
regmap, we should acquire one hardware spinlock to synchronize between
the multiple subsystems. Thus this patch adds the hardware spinlock
support for regmap.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c
include/linux/regmap.h