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, 18 Jun 2012 19:13:06 +0200 (CEST)
From:	Guennadi Liakhovetski <g.liakhovetski@....de>
To:	Mark Brown <broonie@...nsource.wolfsonmicro.com>
cc:	linux-kernel@...r.kernel.org, Liam Girdwood <lrg@...com>
Subject: Re: [PATCH 1/2 v2] regulator: support multiple dummy fixed regulators

On Mon, 18 Jun 2012, Mark Brown wrote:

> On Mon, Jun 18, 2012 at 06:30:30PM +0200, Guennadi Liakhovetski wrote:
> > On Mon, 18 Jun 2012, Mark Brown wrote:
> 
> > > None of this seems terribly obvious to me.  Once we're getting into
> > > allowing the user to specify a voltage (and possibly other parameters)
> > > for the regulator it's hopefully going to refer to an actual thing we
> > > can point at on the board rather than a virtual thing we've got to
> > > satisfy software so giving it a useful name seems more useful (like a
> > > name correspoding to the relevant supply on the schematic).  
> 
> > Sorry, don't understand. What do you mean by a "virtual" supply? There is 
> > a device, it is functional, doesn't this mean, that something is supplying 
> > power to it? And if power is supplied, then it also hopefully has a 
> > certain voltage :) Why I need to know it - to set an MMC OCR mask.
> 
> It's for cases where people can't be bothered to specify the supply
> properly but want to just put something in there to satisfy the sofware
> without providing any useful information.  There will be one or more
> physical supplies but the software is being non-committal about them.

Ok, but for that purpose I thought we already have the dummy regulator... 
So, what's the proper way to describe board common voltage rails? 
Obviously you don't want to disable and enable them. Of course, there are 
real physical regulators, that provide that voltage, but what does it 
change, whether we specify the real name of that device or just say - yes, 
we have 3.3V on this board? So, it IS just a fixed regulator with a fixed 
voltage with no way to control it. The only action you can perform with it 
is query the voltage.

> > > There's also the fact that there shouldn't be any need for unique
> > > regulator names internally so if it really doesn't matter we should be
> > > able to give everything the same name happily enough.
> 
> > What about entries under /proc/sys/debug/regulator/? Don't they have to be 
> > unique?
> 
> Meh, yes.  I did try to make them readable.  But then making up the
> names in this fashion does rather defeat the point there...

Ok, what shall we do with this? You want the user to supply a name for 
these fixed voltage always-on regulators? Or you're against these changes 
altogether? Strictly speaking, these patches are not required for boards 
to implement such regulators. It is "just" a helper function. But I think 
the task is pretty common - provide a power supply with a fixed queryable 
voltage. This can easily be implemented as a helper function in regulator 
core, or platforms will have to re-invent it themselves.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
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