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:	Thu, 21 Feb 2013 19:43:02 +0000
From:	Mark Brown <broonie@...nsource.wolfsonmicro.com>
To:	Stephen Warren <swarren@...dotorg.org>
Cc:	Shawn Joo <sjoo@...dia.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regulator: core: use regulator name for sysfs

On Thu, Feb 21, 2013 at 12:24:04PM -0700, Stephen Warren wrote:
> On 02/21/2013 12:53 AM, Shawn Joo wrote:

> > regulator is named by numbering on sysfs, e.g. regulator.0, regulator.1
> > it confuses to find desired regulator before counting the order.
> > add option for regulator name by use_name_onsysfs.
> > if it is true and name is not NULL, desc's name will be the name.
> > e.g. if name in desc is "LDO0", then regulator.LDO0 on sysfs.
> > otherwise it follows origin.

> Does it make sense to make this change always, rather than based on some
> new flag in regulator_desc?

It's certainly insane to change this based on the driver and given that
sysfs is supposed to be an ABI it's questionable if we should do it at
all.  We certainly can't use the descriptor name as that's very likely
to clash if you have more than one PMIC.  Taking a glance through sysfs
on my system what we're doing at the minute is pretty idiomatic, sysfs
isn't really intended for humans but rather for machines to prettify.

> Another place a similar change might be useful is debugfs.

debugfs already uses more human readable names, it uses the supply name
(which is what we should be using if we were going to do anything as
it really ought to be unique already).

Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ