1. 26 5月, 2018 1 次提交
  2. 23 1月, 2018 1 次提交
  3. 08 1月, 2018 1 次提交
  4. 05 1月, 2018 1 次提交
  5. 22 10月, 2017 2 次提交
  6. 25 8月, 2017 1 次提交
  7. 19 7月, 2017 1 次提交
  8. 23 6月, 2017 1 次提交
  9. 23 5月, 2017 1 次提交
  10. 20 4月, 2017 2 次提交
  11. 28 2月, 2017 1 次提交
  12. 09 2月, 2017 1 次提交
  13. 15 11月, 2016 2 次提交
  14. 06 10月, 2016 1 次提交
    • P
      of/platform: Probe "isa" busses by default · ecd76ede
      Paul Burton 提交于
      Since commit 44a7185c ("of/platform: Add common method to populate
      default bus") platforms calling of_platform_bus_probe from an initcall
      is either a rather unsafe race with of_platform_default_populate_init or
      a no-op. The MIPS Malta board needs to probe devices under an ISA bus,
      which we do support in the of_busses array but until now haven't
      included in of_default_bus_match_table.
      
      Add an "isa" entry to of_default_bus_match_table such that we can just
      accept use of of_platform_default_populate_init & remove the
      Malta-specific match table in a later patch.
      Signed-off-by: NPaul Burton <paul.burton@imgtec.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: linux-mips@linux-mips.org
      Cc: devicetree@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      Patchwork: https://patchwork.linux-mips.org/patch/14275/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      ecd76ede
  15. 15 9月, 2016 1 次提交
    • R
      of/platform: Initialise dev->fwnode appropriately · f94277af
      Robin Murphy 提交于
      Whilst we're some of the way towards a universal firmware property
      interface, drivers which deal with both OF and ACPI probing end up
      having to do things like this:
      
          dev->of_node ? &dev->of_node->fwnode : dev->fwnode
      
      This seems unnecessary, when the OF code could instead simply fill in
      the device's fwnode when binding the of_node, and let the drivers use
      dev->fwnode either way. Let's give it a go and see what falls out.
      Signed-off-by: NRobin Murphy <robin.murphy@arm.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      f94277af
  16. 13 8月, 2016 1 次提交
    • K
      of/platform: disable the of_platform_default_populate_init() for all the ppc boards · fc520f8b
      Kevin Hao 提交于
      With the commit 44a7185c ("of/platform: Add common method to
      populate default bus"), a default function is introduced to populate
      the default bus and this function is invoked at the arch_initcall_sync
      level. But a lot of ppc boards use machine_device_initcall() to
      populate the default bus. This means that the default populate function
      has higher priority and would override the arch specific population of
      the bus. The side effect is that some arch specific bus are not probed,
      then cause various malfunction due to the miss of some devices. Since
      it is very possible to introduce bugs if we simply change the initcall
      level for all these boards(about 30+). This just disable this default
      function for all the ppc boards.
      Signed-off-by: NKevin Hao <haokexin@gmail.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      fc520f8b
  17. 06 8月, 2016 1 次提交
  18. 19 7月, 2016 1 次提交
  19. 24 6月, 2016 2 次提交
    • K
      Revert "of/platform: export of_default_bus_match_table" · e1bcbee6
      Kefeng Wang 提交于
      This reverts commit b80443c2.
      
      After covering to use helper of_platform_default_populate() to populate
      the default bus, no need to export of_default_bus_match_table anymore.
      Reviewed-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: Grant Likely <grant.likely@linaro.org>
      Signed-off-by: NKefeng Wang <wangkefeng.wang@huawei.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      e1bcbee6
    • K
      of/platform: Add common method to populate default bus · 44a7185c
      Kefeng Wang 提交于
      The arch code calls of_platform_populate() with default match table
      when it wants to populate default bus.
      
      This patch introduce a new of_platform_default_populate_init() and make it
      arch_initcall_sync(it should be later than some iommu configration, eg,
      of_iommu_init() and swiotlb_late_init in arm64), then we can finish above
      job in common method.
      
      In order to avoid the default bus being populated twice, simply checking
      the flag of bus node whether has be set OF_POPULATED_BUS or not.
      
      After that, we can safely remove the caller in arch code.
      
      Btw, add debug print in of_platform_populate(), and use __func__ to
      print function's name of of_platform_bus_create().
      
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: Grant Likely <grant.likely@linaro.org>
      Signed-off-by: NKefeng Wang <wangkefeng.wang@huawei.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      44a7185c
  20. 15 4月, 2016 1 次提交
    • T
      of/platform: Allow secondary compatible match in of_dev_lookup · fc5cf80a
      Tony Lindgren 提交于
      We currently try to match of_dev_auxdata based on compatible,
      IO address, and device name. But in some cases we have multiple
      instances of drivers that can use the same auxdata.
      
      Let's add an additional secondary lookup for generic compatible
      match for auxdata if no device specific match is found. This does
      not change the existing matching, and still allows adding device
      specific auxdata.
      
      This simplifies things as specifying the IO address and device
      name is prone errors as it requires maintaining an in kernel
      database for each SoC.
      
      To specify a generic match, all that is needed is to add a
      OF_DEV_AUXDATA entry with no device instance specified:
      
      OF_DEV_AUXDATA("pinctrl-single", 0, NULL, &pcs_pdata),
      
      As the auxdata is already initialized only for the booted SoC,
      there's not much of a chance of getting things wrong.
      
      Let's also fix two checkpatch warnings while at it to add a
      space before parenthesis in the for loop, and remove a comparison
      to NULL by using !auxdata->compatible.
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      fc5cf80a
  21. 05 1月, 2016 1 次提交
  22. 22 10月, 2015 1 次提交
  23. 26 8月, 2015 1 次提交
  24. 30 7月, 2015 1 次提交
  25. 10 6月, 2015 1 次提交
  26. 01 6月, 2015 1 次提交
  27. 11 5月, 2015 1 次提交
  28. 04 3月, 2015 2 次提交
  29. 22 1月, 2015 2 次提交
  30. 14 1月, 2015 1 次提交
  31. 02 12月, 2014 2 次提交
  32. 25 11月, 2014 1 次提交
  33. 20 11月, 2014 1 次提交
    • G
      of: Properly set the OF_POPULATED_BUS flag on root node · 2d0747c4
      Grant Likely 提交于
      of_platform_populate() takes a subset of the device tree and turns it
      into a set of platform_devices. At the same time it sets the
      OF_POPULATED_BUS flag in each bus nodes so that of_platform_depopulate()
      can undo the operation at a later time. However, it doesn't set the flag
      on the root of the population tree which means that dynamic modifications
      of the device tree at runtime will not create/destroy devices correctly.
      
      Fix of_platform_populate() to set the OF_POPULATED_BUS flag on the node
      it is called with.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
      Cc: Pawel Moll <pawel.moll@arm.com>
      2d0747c4