[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1393951832-2638-1-git-send-email-swarren@wwwdotorg.org>
Date: Tue, 4 Mar 2014 09:50:32 -0700
From: Stephen Warren <swarren@...dotorg.org>
To: Samuel Ortiz <sameo@...ux.intel.com>,
Lee Jones <lee.jones@...aro.org>
Cc: linux-kernel@...r.kernel.org, Stephen Warren <swarren@...dia.com>,
Mark Brown <broonie@...aro.org>,
Michal Simek <michal.simek@...inx.com>,
Andrew Bresticker <abrestic@...omium.org>,
Vince Hsu <vinceh@...dia.com>
Subject: [PATCH] mfd: as3722: make FUSE7_REG readable
From: Stephen Warren <swarren@...dia.com>
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]
Cc: Mark Brown <broonie@...aro.org>
Cc: Michal Simek <michal.simek@...inx.com>
Cc: Andrew Bresticker <abrestic@...omium.org>
Cc: Vince Hsu <vinceh@...dia.com>
Signed-off-by: Stephen Warren <swarren@...dia.com>
---
Note: I believe the regmap commit mentioned above is for 3.15, whereas
the as3722 commit is in at least 3.14. So, this only needs to be applied
for 3.15, but might make sense to go into earlier kernels, at your
discretion.
---
drivers/mfd/as3722.c | 1 +
1 file changed, 1 insertion(+)
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 = {
--
1.8.1.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists