mfd: atmel-hlcdc: Implement config synchronization
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 7 Jul 2015 17:16:43 +0000 (19:16 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 11 Aug 2015 14:08:54 +0000 (15:08 +0100)
commitea31c0cf9b071127a3f16f02b7494b9e5fd6f71f
treebf7bab121db96518945dba85cc73c919b770fdf8
parent3811405e2f9bc6f39c0cd5aadf95a957ae27b395
mfd: atmel-hlcdc: Implement config synchronization

Some HLCDC registers cannot be written until the hardware has finished
applying the previous configuration request. If they are written while
an action is still in progress, the new configuration might be silently
ignored, resulting in unpredictable behavior.

Hide the config synchronization stuff in a regmap implementation and use
this implementation instead of the generic mmio one.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/atmel-hlcdc.c