27 Apr, 2018

1 commit

  • Only the overlay notifier callbacks have a chance to potentially get
    hold of references to those two resources, but they are not supposed to
    store them beyond OF_OVERLAY_POST_REMOVE.

    Document the overlay notifier API, its constraint regarding pointer
    lifetime, and then remove intentional leaks of ovcs->overlay_tree and
    ovcs->fdt from free_overlay_changeset.

    See also https://lkml.org/lkml/2018/4/23/1063 and following.

    Signed-off-by: Jan Kiszka
    Reviewed-by: Frank Rowand
    Signed-off-by: Rob Herring

    Jan Kiszka
     

18 Mar, 2018

1 commit


04 Mar, 2018

1 commit


18 Oct, 2017

1 commit

  • This patch is aimed primarily at drivers/of/overlay.c, but those
    changes also have a small impact in a few other files.

    overlay.c is difficult to read and maintain. Improve readability:
    - Rename functions, types and variables to better reflect what
    they do and to be consistent with names in other places,
    such as the device tree overlay FDT (flattened device tree),
    and make the algorithms more clear
    - Use the same names consistently throughout the file
    - Update comments for name changes
    - Fix incorrect comments

    This patch is intended to not introduce any functional change.

    Signed-off-by: Frank Rowand
    Signed-off-by: Rob Herring

    Frank Rowand
     

23 Jun, 2017

1 commit


29 Jan, 2015

1 commit


25 Nov, 2014

1 commit

  • Overlays are a method to dynamically modify part of the kernel's
    device tree with dynamically loaded data. Add the core functionality to
    parse, apply and remove an overlay changeset. The core functionality
    takes care of managing the overlay data format and performing the add
    and remove. Drivers are expected to use the overlay functionality to
    support custom expansion busses commonly found on consumer development
    boards like the BeagleBone or Raspberry Pi.

    The overlay code uses CONFIG_OF_DYNAMIC changesets to perform the low
    level work of modifying the devicetree.

    Documentation about internal and APIs is provided in
    Documentation/devicetree/overlay-notes.txt

    v2:
    - Switch from __of_node_alloc() to __of_node_dup()
    - Documentation fixups
    - Remove 2-pass processing of properties
    - Remove separate ov_lock; just use the DT mutex.
    v1:
    - Drop delete capability using '-' prefix. The '-' prefixed names
    are valid properties and nodes and there is no need for it just yet.
    - Do not update special properties - name & phandle ones.
    - Change order of node attachment, so that the special property update
    works.

    Signed-off-by: Pantelis Antoniou
    Signed-off-by: Grant Likely

    Pantelis Antoniou