]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mfd: atmel-hlcdc: Do not sleep in atomic context
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 6 Sep 2016 12:19:29 +0000 (14:19 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:04 +0000 (15:48 +0100)
commit2c2469bc03d569c49119db2cccb5cb3f0c6a5b33
tree420d4289e1777c496ca2c19699a0908bdba6918b
parent22a96b85eabd05a77bd1388d041d96ccc8f86459
mfd: atmel-hlcdc: Do not sleep in atomic context

readl_poll_timeout() calls usleep_range(), but
regmap_atmel_hlcdc_reg_write() is called in atomic context (regmap
spinlock held).

Replace the readl_poll_timeout() call by readl_poll_timeout_atomic().

Cc: <stable@vger.kernel.org>
Fixes: ea31c0cf9b07 ("mfd: atmel-hlcdc: Implement config synchronization")
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/atmel-hlcdc.c