lkml.org 
[lkml]   [2013]   [Jul]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 01/15] drivers: phy: add generic PHY framework
    On Tue, Jul 23, 2013 at 11:05:48PM +0200, Tomasz Figa wrote:
    > > That's not so bad, as long as you let the phy core use whatever name it
    > > wants for the device when it registers it with sysfs.
    >
    > Yes, in regulator core consumer names are completely separated from this.
    > Regulator core simply assigns a sequential integer ID to each regulator
    > and registers /sys/class/regulator/regulator.ID for each regulator.

    Yes, that's fine.

    > > Use the name you
    > > are requesting as a "tag" or some such "hint" as to what the phy can be
    > > looked up by.
    > >
    > > Good luck handling duplicate "tags" :)
    >
    > The tag alone is not a key. Lookup key consists of two components,
    > consumer device name and consumer tag. What kind of duplicate tags can be
    > a problem here?

    Ok, I didn't realize it looked at both parts, that makes sense, thanks.

    greg k-h


    \
     
     \ /
      Last update: 2013-07-24 00:21    [W:2.619 / U:0.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site