28 Dec, 2011

1 commit

  • Fix the following section mismatch warning - seen when building sparc32:

    WARNING: vmlinux.o(.text+0x1ff9c0): Section mismatch in reference from the function kernel_tree_alloc() to the function .init.text:prom_early_alloc()
    The function kernel_tree_alloc() references
    the function __init prom_early_alloc().
    This is often because kernel_tree_alloc lacks a __init
    annotation or the annotation of prom_early_alloc is wrong.

    prom_early_alloc() is annotated __init, and users of
    kernel_tree_alloc() is also annotated __init.
    So simply match the annoation of these to fix the warning.

    Signed-off-by: Sam Ravnborg
    Cc: Grant Likely
    Acked-by: David S. Miller
    Signed-off-by: Rob Herring

    Sam Ravnborg
     

23 Sep, 2011

1 commit

  • The patch adds function of_alias_scan to populate a global lookup
    table with the properties of 'aliases' node and function
    of_alias_get_id for drivers to find alias id from the lookup table.

    v3: Split out automatic addition of aliases on id lookup so that it can be
    debated separately from the core functionality.
    v2: - Add of_chosen/of_aliases populating and of_alias_scan() invocation
    for OF_PROMTREE.
    - Add locking
    - rework parse loop

    Signed-off-by: Shawn Guo
    Acked-by: David S. Miller
    Signed-off-by: Grant Likely

    Shawn Guo
     

03 Mar, 2011

1 commit

  • Commit e2f2a93b, "of/promtree: add package-to-path support to pdt"
    changed dp->name from using the 'name' property to using
    package-to-path. This fixed /proc/device-tree creation by eliminating
    conflicts between names (the 'name' property provides names like
    'battery', whereas package-to-path provides names like
    '/foo/bar/battery@0', which we stripped to 'battery@0'). However, it
    also breaks of_device_id table matching.

    The fix that we _really_ wanted was to keep dp->name based upon
    the name property ('battery'), but based dp->full_name upon
    package-to-path ('battery@0'). This patch does just that.

    This changes all users (except SPARC) of promtree to use the full
    result from package-to-path for full_name, rather than stripping the
    directory out. In practice, the strings end up being exactly the
    same; this change saves time, code, and memory.

    SPARC continues to use the existing build_path_component() code.

    v2: combine two patches and revert of_pdt_node_name to original version
    v3: use dp->phandle instead of passing around node
    v4: warn/bail out for non-sparc archs if pkg2path is not set
    v5: split of_pdt_build_full_name into sparc & non-sparc versions
    v6: Pass NULL to pkg2path before buf gets assigned.
    Drop check for pkg2path hook on each and every node.
    v7: Don't BUG() when unable to get the full_path; create a
    known-unique name instead.

    Signed-off-by: Andres Salomon
    Signed-off-by: Grant Likely

    Andres Salomon
     

13 Oct, 2010

3 commits


11 Oct, 2010

1 commit


09 Oct, 2010

1 commit