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]
Date:	Mon, 23 Apr 2012 14:45:10 +0200
From:	Ulf Hansson <ulf.hansson@...ricsson.com>
To:	Mark Brown <broonie@...nsource.wolfsonmicro.com>
Cc:	Liam Girdwood <lrg@...mlogic.co.uk>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Mattias WALLIN <mattias.wallin@...ricsson.com>,
	Jonas ABERG <jonas.aberg@...ricsson.com>,
	Lee Jones <lee.jones@...aro.org>
Subject: Re: [PATCH] regulator: core: Keep boot_on regulators powered during
 init

On 04/23/2012 02:25 PM, Mark Brown wrote:
> On Mon, Apr 23, 2012 at 02:21:49PM +0200, Ulf Hansson wrote:
>> On 04/23/2012 01:05 PM, Mark Brown wrote:
>
>>> To be honest I don't entirely understand what your goal is at the system
>>> level - the current idea is that either the regulator will be marked as
>>> always_on or it should be enabled by a consumer.  What is the scenario
>>> in which neither of these is sufficient?
>
>> The consumer do not want to enable the regulator directly from its
>> device probe routine, it is handled through a scheduled work.
>
>> Moreover the regulator shall not be switched off unless the consumer
>> work decides that this is OK.
>
> Cann you be a bit more concrete?  What is this device and why does it
> have these requirements?  The most obvious thing to do here is to run
> the work in the probe routine.

This issue is related to how eMMC cards is working and powered.

A typical mmc host driver is when finished it's probe routine, trigger 
of a so called mmc_rescan work which is taking care of detecting and 
initializing the eMMC card. It is a quite complicated procedure which 
preferably not to be handled from the host driver's probe function.

If the platform already have booted from the eMMC card, the card is 
already powered an initialized from a bootloader. Cutting the power 
without first notifying the card by sending commands to it, must be 
prevented and also violates the eMMC specification. In the end, it will 
mean that the detect and initialization procedure fails.

Kind regards
Ulf Hansson
--
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