• Linus Torvalds's avatar
    Merge tag 'devicetree-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/glikely/linux · 7ef58b32
    Linus Torvalds authored
    Pull devicetree changes from Grant Likely:
     "Lots of activity in the devicetree code for v3.18.  Most of it is
      related to getting all of the overlay support code in place, but there
      are other important things in there.
    
      Highlights:
    
       - OF_RECONFIG notifiers for SPI, I2C and Platform devices.  Those
         subsystems can now respond to live changes to the device tree.
    
       - CONFIG_OF_OVERLAY method for applying live changes to the device
         tree
    
       - Removal of the of_allnodes list.  This used to be used to iterate
         over all the nodes in the device tree, but it is unnecessary
         because the same thing can be done by iterating over the list of
         child pointers.  Getting rid of of_allnodes saves some memory and
         avoids the possibility of of_allnodes being sorted differently from
         the child lists.
    
       - Support for retrieving original DTB blob via sysfs.  Needed by
         kexec.
    
       - More unittests
    
       - Documentation and minor bug fixes"
    
    * tag 'devicetree-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/glikely/linux: (42 commits)
      of: Delete unnecessary check before calling "of_node_put()"
      of: Drop ->next pointer from struct device_node
      spi: Check for spi_of_notifier when CONFIG_OF_DYNAMIC=y
      of: support passing console options with stdout-path
      of: add optional options parameter to of_find_node_by_path()
      of: Add bindings for chosen node, stdout-path
      of: Remove unneeded and incorrect MODULE_DEVICE_TABLE
      ARM: dt: fix up PL011 device tree bindings
      of: base, fix of_property_read_string_helper kernel-doc
      of: remove select of non-existant OF_DEVICE config symbol
      spi/of: Add OF notifier handler
      spi/of: Create new device registration method and accessors
      i2c/of: Add OF_RECONFIG notifier handler
      i2c/of: Factor out Devicetree registration code
      of/overlay: Add overlay unittests
      of/overlay: Introduce DT overlay support
      of/reconfig: Add OF_DYNAMIC notifier for platform_bus_type
      of/reconfig: Always use the same structure for notifiers
      of/reconfig: Add debug output for OF_RECONFIG notifiers
      of/reconfig: Add empty stubs for the of_reconfig methods
      ...
    7ef58b32
spi.c 63.2 KB