diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-03-04 17:50:32 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-03-19 09:58:37 +0100 |
commit | 09507305a5b372812929f3e8acf9b72f35a88c1c (patch) | |
tree | 2a998f5ac80bb6ee1328686b6f27b8afb5574b2a /drivers/mfd/as3722.c | |
parent | mfd: pm8921: Use IRQCHIP_SKIP_SET_WAKE (diff) | |
download | linux-09507305a5b372812929f3e8acf9b72f35a88c1c.tar.xz linux-09507305a5b372812929f3e8acf9b72f35a88c1c.zip |
mfd: as3722: Make FUSE7_REG readable
The FUSE7_REG register is not currently marked readable. This causes
as3722_sd0_is_low_voltage() to emit an error during boot, and assume
the range of the SD0 regulator:
as3722-regulator as3722-regulator: Reg 0xa7 read failed: -5
Fixes: d4807ad2c4c0 ("regmap: Check readable regs in _regmap_read")
[exposed the bug, by checking for readability]
Fixes: 762a8ee80897 ("regulator: as3722: detect SD0 low-voltage mode")
[left out this register from the readable list]
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/as3722.c')
-rw-r--r-- | drivers/mfd/as3722.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/as3722.c b/drivers/mfd/as3722.c index c71ff0af1547..39fa554f13bb 100644 --- a/drivers/mfd/as3722.c +++ b/drivers/mfd/as3722.c @@ -277,6 +277,7 @@ static const struct regmap_range as3722_readable_ranges[] = { regmap_reg_range(AS3722_ADC0_CONTROL_REG, AS3722_ADC_CONFIGURATION_REG), regmap_reg_range(AS3722_ASIC_ID1_REG, AS3722_ASIC_ID2_REG), regmap_reg_range(AS3722_LOCK_REG, AS3722_LOCK_REG), + regmap_reg_range(AS3722_FUSE7_REG, AS3722_FUSE7_REG), }; static const struct regmap_access_table as3722_readable_table = { |