lkml.org 
[lkml]   [2011]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH 1/3] serial/imx: add device tree support
    On Tue, Jun 21, 2011 at 12:32 PM, Mitch Bradley <wmb@firmworks.com> wrote:
    > I wonder if it makes sense to create a new device node "/linux-devices" to express a desired mapping from device nodes to /dev entries?  The properties could be the names of device special files and the values the corresponding node phandles.

    I've been trying /really/ hard to avoid doing something like that
    because a lot of the time the desired Linux dev name is a
    implementation detail, and a potentially unstable one at that. If
    Linux requires certain devices to have certain names because that is
    how it hooks up clocks (which is the current situation on some
    platforms), then I'd rather have Linux encode a lookup of the
    preferred name, at least until the that particular implementation
    detail goes away.

    As for enumerating devices, I don't think this is a Linux-specific
    thing. In this case it is entirely reasonable to want to say /this
    node/ is the second serial port, and /that node/ is the third, which
    is information needed regardless of the client OS.

    g.
    --
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2011-06-21 20:45    [W:0.021 / U:29.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site