1. 23 May, 2014 6 commits
  2. 22 May, 2014 4 commits
    • Xiubo Li's avatar
      of: fix race between search and remove in of_update_property() · 947fdaad
      Xiubo Li authored
      The of_update_property() is intented to update a property in a node
      and if the property does not exist, will add it.
      
      The second search of the property is possibly won't be found, that
      maybe removed by other thread just before the second search begain.
      
      Using the __of_find_property() and __of_add_property() instead and
      move them into lock operations.
      Signed-off-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
      [grant.likely: conflict with another change in same function]
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      947fdaad
    • Thierry Reding's avatar
      of: Use NULL for pointers · d2d3d7cd
      Thierry Reding authored
      Commit 44856819 (of/fdt: Clean up casting in unflattening path)
      modified unflatten_dt_node() to take a void * for the mem parameter
      instead of an unsigned long. One of the call sites wasn't updated.
      Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      
      Conflicts:
      	drivers/of/fdt.c
      d2d3d7cd
    • Grant Likely's avatar
      of: Stop naming platform_device using dcr address · ba52464a
      Grant Likely authored
      There is now a way to ensure all platform devices get a unique name when
      populated from the device tree, and the DCR_NATIVE code path is broken
      anyway. PowerPC Cell (PS3) is the only platform that actually uses this
      path.  Most likely nobody will notice if it is killed. Remove the code
      and associated ugly #ifdef.
      
      The user-visible impact of this patch is that any DCR device on Cell
      will get a new name in the /sys/devices hierarchy.
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      ba52464a
    • Grant Likely's avatar
      of: Ensure unique names without sacrificing determinism · 07e461cd
      Grant Likely authored
      The way the driver core is implemented, every device using the same bus
      type is required to have a unique name because a symlink to each device
      is created in the appropriate /sys/bus/*/devices directory, and two
      identical names causes a collision.
      
      The current code handles the requirement by using an globally
      incremented counter that is appended to the device name. It works, but
      it means any change to device registration will change the assigned
      numbers. Instead, if we build up the name by using information from the
      parent nodes, then it can be guaranteed to be unique without adding a
      random number to the end of it.
      Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
      Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
      Cc: Rob Herring <robh@kernel.org>
      07e461cd
  3. 13 May, 2014 5 commits
  4. 09 May, 2014 6 commits
  5. 08 May, 2014 9 commits
  6. 07 May, 2014 6 commits
  7. 06 May, 2014 4 commits