regmap: Allocate buffers with GFP_ATOMIC when fast_io == true
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 11 Sep 2015 23:37:05 +0000 (16:37 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 14 Sep 2015 18:49:26 +0000 (19:49 +0100)
commitb4a21fc275e99fc63c77b30da92ee497f8a7bdb6
tree0402fddcd4ae52a6a6d358dae0d6581df881a4ac
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
regmap: Allocate buffers with GFP_ATOMIC when fast_io == true

If a regmap is using fast_io, allocate the scratch buffer in
regmap_bulk_write() with GFP_ATOMIC instead of GFP_KERNEL.
Otherwise we may schedule while atomic.

Reported-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/internal.h
drivers/base/regmap/regmap.c