lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53FE47A9.1020701@gmail.com>
Date:	Wed, 27 Aug 2014 23:03:37 +0200
From:	Tomasz Figa <tomasz.figa@...il.com>
To:	Mark Brown <broonie@...nel.org>
CC:	Javier Martinez Canillas <javier.martinez@...labora.co.uk>,
	Doug Anderson <dianders@...omium.org>,
	Olof Johansson <olof@...om.net>,
	Yuvaraj Kumar C D <yuvaraj.cd@...il.com>,
	linux-samsung-soc@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/1] regulator: max77802: set opmode to normal if off
 is read from hw

On 27.08.2014 22:41, Tomasz Figa wrote:
> On 27.08.2014 22:25, Mark Brown wrote:
>> On Wed, Aug 27, 2014 at 09:58:55PM +0200, Tomasz Figa wrote:
>>> On 27.08.2014 21:44, Mark Brown wrote:
>>
>>>> The point is that if anything was setting the mode to something other
>>>> than normal it was almost certainly a previously running copy of Linux
>>>> and one would expect that if the mode does need to be changed the new
>>>> copy will be doing that anyway.  It's rare enough to need to actively
>>>> manage modes in the first place.
>>
>>> From what I know based on my experience with Samsung boards we used, the
>>> opmodes of regulators are preconfigured by board bootloader to certain
>>> values based on power design of the board (i.e. there is no need to keep
>>> a regulator in full power mode, if on given board only a little fraction
>>> of it is needed).
>>
>> Well, presumably the bootloader is going to run again even for a warm
>> reboot?
> 
> This is strange, but apparently it's not the case for the hardware which
> this patch is supposed to fix or at least this is how I understood it.
> 

OK, I just realized that Javier's problem might be caused by the fact
that the bootloader he use doesn't change the regulators from defaults
at all. In this case this patch is just fine.

Best regards,
Tomasz
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ