Re: [PATCH 1/1] regulator: max77802: set opmode to normal if off is read from hw
From: Mark Brown
Date: Thu Aug 28 2014 - 06:02:25 EST
On Thu, Aug 28, 2014 at 11:59:16AM +0200, Javier Martinez Canillas wrote:
> > On 28/08/2014, at 10:28, Mark Brown <broonie@xxxxxxxxxx> wrote:
> >> Yes, AFAIK the bootloader (none of them because Chromebooks use two
> >> chained U-boots) change the regulators default opmode so once is set
> >> to OFF on .disable, that value is preserved on warm reboot. This made
> >> sense with the Chrome OS kernel since the kernel always set the opmode
> >> defined in the "regulator-op-mode" DT property and did not relied on
> >> the bootloader to set the most efficient default opmode.
> > I'm sorry but this is just really unclear. Does the bootloader change
> > the mode or does it not change the mode?
> I meant that the boot loader *does not* change the mode and is Linux
> who change it, sorry for the confusion.
Ah, OK. Like I say that's a separate concern to the one Tomasz was
raising - he is worried about the case where we change the mode in the
bootloader but only on cold boot.
Description: Digital signature