All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: as3722: make FUSE7_REG readable
@ 2014-03-04 16:50 Stephen Warren
  2014-03-05  1:55 ` Lee Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2014-03-04 16:50 UTC (permalink / raw)
  To: Samuel Ortiz, Lee Jones
  Cc: linux-kernel, Stephen Warren, Mark Brown, Michal Simek,
	Andrew Bresticker, Vince Hsu

From: Stephen Warren <swarren@nvidia.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@linaro.org>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Andrew Bresticker <abrestic@chromium.org>
Cc: Vince Hsu <vinceh@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] mfd: as3722: make FUSE7_REG readable
  2014-03-04 16:50 [PATCH] mfd: as3722: make FUSE7_REG readable Stephen Warren
@ 2014-03-05  1:55 ` Lee Jones
  2014-03-19 16:09   ` Stephen Warren
  0 siblings, 1 reply; 7+ messages in thread
From: Lee Jones @ 2014-03-05  1:55 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Samuel Ortiz, linux-kernel, Stephen Warren, Mark Brown,
	Michal Simek, Andrew Bresticker, Vince Hsu

> From: Stephen Warren <swarren@nvidia.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@linaro.org>
> Cc: Michal Simek <michal.simek@xilinx.com>
> Cc: Andrew Bresticker <abrestic@chromium.org>
> Cc: Vince Hsu <vinceh@nvidia.com>
> Signed-off-by: Stephen Warren <swarren@nvidia.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.

Applied to MFD -next (v3.15).

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] mfd: as3722: make FUSE7_REG readable
  2014-03-05  1:55 ` Lee Jones
@ 2014-03-19 16:09   ` Stephen Warren
  2014-03-19 17:01     ` Lee Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2014-03-19 16:09 UTC (permalink / raw)
  To: Lee Jones
  Cc: Samuel Ortiz, linux-kernel, Stephen Warren, Mark Brown,
	Michal Simek, Andrew Bresticker, Vince Hsu

On 03/04/2014 06:55 PM, Lee Jones wrote:
>> From: Stephen Warren <swarren@nvidia.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@linaro.org>
>> Cc: Michal Simek <michal.simek@xilinx.com>
>> Cc: Andrew Bresticker <abrestic@chromium.org>
>> Cc: Vince Hsu <vinceh@nvidia.com>
>> Signed-off-by: Stephen Warren <swarren@nvidia.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.
> 
> Applied to MFD -next (v3.15).

I don't see this in next-20140319; did it get dropped somewhere, or was
your branch not pushed out?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] mfd: as3722: make FUSE7_REG readable
  2014-03-19 16:09   ` Stephen Warren
@ 2014-03-19 17:01     ` Lee Jones
  2014-03-19 17:04       ` Lee Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Lee Jones @ 2014-03-19 17:01 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Samuel Ortiz, linux-kernel, Stephen Warren, Mark Brown,
	Michal Simek, Andrew Bresticker, Vince Hsu

> >> From: Stephen Warren <swarren@nvidia.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@linaro.org>
> >> Cc: Michal Simek <michal.simek@xilinx.com>
> >> Cc: Andrew Bresticker <abrestic@chromium.org>
> >> Cc: Vince Hsu <vinceh@nvidia.com>
> >> Signed-off-by: Stephen Warren <swarren@nvidia.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.
> > 
> > Applied to MFD -next (v3.15).
> 
> I don't see this in next-20140319; did it get dropped somewhere, or was
> your branch not pushed out?

Ah, thanks for the reminder.

I moved the MFD tree from linaro.org to kernel.org, but failed to let
Stephen know. I'll do so now.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] mfd: as3722: make FUSE7_REG readable
  2014-03-19 17:01     ` Lee Jones
@ 2014-03-19 17:04       ` Lee Jones
  2014-03-19 17:13         ` Stephen Warren
  0 siblings, 1 reply; 7+ messages in thread
From: Lee Jones @ 2014-03-19 17:04 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Samuel Ortiz, linux-kernel, Stephen Warren, Mark Brown,
	Michal Simek, Andrew Bresticker, Vince Hsu

> > >> From: Stephen Warren <swarren@nvidia.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@linaro.org>
> > >> Cc: Michal Simek <michal.simek@xilinx.com>
> > >> Cc: Andrew Bresticker <abrestic@chromium.org>
> > >> Cc: Vince Hsu <vinceh@nvidia.com>
> > >> Signed-off-by: Stephen Warren <swarren@nvidia.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.
> > > 
> > > Applied to MFD -next (v3.15).
> > 
> > I don't see this in next-20140319; did it get dropped somewhere, or was
> > your branch not pushed out?
> 
> Ah, thanks for the reminder.
> 
> I moved the MFD tree from linaro.org to kernel.org, but failed to let
> Stephen know. I'll do so now.

Whoops. No, you're Stephen. I meant Andrew.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] mfd: as3722: make FUSE7_REG readable
  2014-03-19 17:04       ` Lee Jones
@ 2014-03-19 17:13         ` Stephen Warren
  2014-03-19 21:45           ` Lee Jones
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Warren @ 2014-03-19 17:13 UTC (permalink / raw)
  To: Lee Jones
  Cc: Samuel Ortiz, linux-kernel, Stephen Warren, Mark Brown,
	Michal Simek, Andrew Bresticker, Vince Hsu

On 03/19/2014 11:04 AM, Lee Jones wrote:
>>>>> From: Stephen Warren <swarren@nvidia.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
...
>>>> Applied to MFD -next (v3.15).
>>>
>>> I don't see this in next-20140319; did it get dropped somewhere, or was
>>> your branch not pushed out?
>>
>> Ah, thanks for the reminder.
>>
>> I moved the MFD tree from linaro.org to kernel.org, but failed to let
>> Stephen know. I'll do so now.
> 
> Whoops. No, you're Stephen. I meant Andrew.

I think you did mean Stephen (Rothwell) :-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] mfd: as3722: make FUSE7_REG readable
  2014-03-19 17:13         ` Stephen Warren
@ 2014-03-19 21:45           ` Lee Jones
  0 siblings, 0 replies; 7+ messages in thread
From: Lee Jones @ 2014-03-19 21:45 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Samuel Ortiz, linux-kernel, Stephen Warren, Mark Brown,
	Michal Simek, Andrew Bresticker, Vince Hsu

> >>>>> From: Stephen Warren <swarren@nvidia.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
> ...
> >>>> Applied to MFD -next (v3.15).
> >>>
> >>> I don't see this in next-20140319; did it get dropped somewhere, or was
> >>> your branch not pushed out?
> >>
> >> Ah, thanks for the reminder.
> >>
> >> I moved the MFD tree from linaro.org to kernel.org, but failed to let
> >> Stephen know. I'll do so now.
> > 
> > Whoops. No, you're Stephen. I meant Andrew.
> 
> I think you did mean Stephen (Rothwell) :-)

I do.

That's who I emailed, but I didn't want to correct myself twice. :)

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-03-19 21:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-04 16:50 [PATCH] mfd: as3722: make FUSE7_REG readable Stephen Warren
2014-03-05  1:55 ` Lee Jones
2014-03-19 16:09   ` Stephen Warren
2014-03-19 17:01     ` Lee Jones
2014-03-19 17:04       ` Lee Jones
2014-03-19 17:13         ` Stephen Warren
2014-03-19 21:45           ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.