mfd: twl6040: The chip does not support bulk access
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 31 Aug 2016 11:46:20 +0000 (14:46 +0300)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:03 +0000 (15:48 +0100)
Bulk access is not working with twl6040, we need to use single register
access. Bulk access would happen when we try to sync the regcache after
power on.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl6040.c

index ab328ec..c3ad59e 100644 (file)
@@ -609,6 +609,7 @@ static const struct regmap_config twl6040_regmap_config = {
        .writeable_reg = twl6040_writeable_reg,
 
        .cache_type = REGCACHE_RBTREE,
+       .use_single_rw = true,
 };
 
 static const struct regmap_irq twl6040_irqs[] = {