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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1e1c3bc4-a429-14cc-1516-199d253430f8@metux.net>
Date:   Thu, 18 Apr 2019 10:15:58 +0200
From:   "Enrico Weigelt, metux IT consult" <lkml@...ux.net>
To:     Sven Van Asbroeck <thesven73@...il.com>
Cc:     Rob Herring <robh+dt@...nel.org>,
        Linus Walleij <linus.walleij@...aro.org>,
        Lee Jones <lee.jones@...aro.org>, mark.rutland@....com,
        Andreas Färber <afaerber@...e.de>,
        treding@...dia.com, David Lechner <david@...hnology.com>,
        noralf@...nnes.org, johan@...nel.org,
        Michal Simek <monstr@...str.eu>, michal.vokac@...ft.com,
        Arnd Bergmann <arnd@...db.de>,
        Greg KH <gregkh@...uxfoundation.org>, john.garry@...wei.com,
        geert+renesas@...der.be, robin.murphy@....com,
        Paul Gortmaker <paul.gortmaker@...driver.com>,
        sebastien.bourdelin@...oirfairelinux.com, icenowy@...c.io,
        Stuart Yoder <stuyoder@...il.com>,
        "J. Kiszka" <jan.kiszka@...mens.com>, maxime.ripard@...tlin.com,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
        netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH v11 3/7] anybus-s: support the Arcx anybus controller

On 17.04.19 16:17, Sven Van Asbroeck wrote:

<snip>

> The input subsystem is concerned with input from humans?
Not necessarily.

> But in this case, it's really a power output from an external card
> on a PCB assembly. Regulator seemed the kernel abstraction
> closest to what this actually represents.

IMHO, regulator framework is for actually controlling power supplies
and things like some device driver asking for powering it's device.

Let's recap what the regulator framework was invented for:

* on many boards, some devices need to be explicitly powered
  (or are powered off for power saving) via external regulators
* these regulators usually are generic chips, just wired up
  differently on the individual boards

If I understood you correctly, your controller has an generic
digital input, which you just use for monitoring that external
power supply in your specific usecase - while other folks might
attach completely different things here.

The really "formally correct" way, the pure doctine, IMHO would
be having that line as a generic input, and in case that there
really is this some power readback connected here, bind it to
a generic driver. (of course, pure doctrine isn't necessarily
the best way to do things)

> I'm honestly not fully satisfied by the use of the regulator
> abstraction here. If you know of a different abstraction
> which seems better, I'll definitely consider it.

hmm, maybe we should talk about what is actually done with
this information.

can you give some practical usecases ?


--mtx

-- 
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@...ux.net -- +49-151-27565287

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ