1. 05 2月, 2014 1 次提交
    • A
      of: Increase MAX_PHANDLE_ARGS · b66548e2
      Andreas Herrmann 提交于
      arm-smmu driver uses of_parse_phandle_with_args when parsing DT
      information to determine stream IDs for a master device.
      Thus the number of stream IDs per master device is bound by
      MAX_PHANDLE_ARGS.
      
      To support Calxeda ECX-2000 hardware arm-smmu driver requires a
      slightly higher value for MAX_PHANDLE_ARGS as this hardware has 10
      stream IDs for one master device.
      
      Increasing it to 16 seems a reasonable choice.
      
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: devicetree@vger.kernel.org
      Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Signed-off-by: NAndreas Herrmann <andreas.herrmann@calxeda.com>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      b66548e2
  2. 03 2月, 2014 1 次提交
  3. 24 1月, 2014 1 次提交
  4. 04 11月, 2013 1 次提交
  5. 31 10月, 2013 1 次提交
  6. 26 10月, 2013 1 次提交
  7. 24 10月, 2013 1 次提交
  8. 10 10月, 2013 2 次提交
  9. 30 8月, 2013 1 次提交
  10. 21 8月, 2013 1 次提交
    • S
      of: move of_get_cpu_node implementation to DT core library · 183912d3
      Sudeep KarkadaNagesha 提交于
      This patch moves the generalized implementation of of_get_cpu_node from
      PowerPC to DT core library, thereby adding support for retrieving cpu
      node for a given logical cpu index on any architecture.
      
      The CPU subsystem can now use this function to assign of_node in the
      cpu device while registering CPUs.
      
      It is recommended to use these helper function only in pre-SMP/early
      initialisation stages to retrieve CPU device node pointers in logical
      ordering. Once the cpu devices are registered, it can be retrieved easily
      from cpu device of_node which avoids unnecessary parsing and matching.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Grant Likely <grant.likely@linaro.org>
      Acked-by: NRob Herring <rob.herring@calxeda.com>
      Signed-off-by: NSudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>
      183912d3
  11. 13 8月, 2013 1 次提交
  12. 24 7月, 2013 1 次提交
  13. 02 5月, 2013 1 次提交
  14. 12 4月, 2013 1 次提交
  15. 10 4月, 2013 1 次提交
  16. 04 4月, 2013 1 次提交
  17. 13 2月, 2013 1 次提交
    • G
      of: Create function for counting number of phandles in a property · bd69f73f
      Grant Likely 提交于
      This patch creates of_count_phandle_with_args(), a new function for
      counting the number of phandle+argument tuples in a given property. This
      is better than the existing method of parsing each phandle individually
      until parsing fails which is a horribly slow way to do the count.
      
      Tested on ARM using the selftest code.
      
      v3: - Rebased on top of selftest code cleanup patch
      v2: - fix bug where of_parse_phandle_with_args() could behave like _count_.
          - made of_gpio_named_count() into a static inline regardless of CONFIG_OF_GPIO
      Tested-by: NAndreas Larsson <andreas@gaisler.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Rob Herring <rob.herring@calxeda.com>
      bd69f73f
  18. 09 2月, 2013 1 次提交
  19. 06 2月, 2013 1 次提交
  20. 12 12月, 2012 1 次提交
  21. 30 11月, 2012 2 次提交
  22. 21 11月, 2012 2 次提交
  23. 17 11月, 2012 1 次提交
  24. 15 11月, 2012 2 次提交
  25. 18 10月, 2012 1 次提交
  26. 01 10月, 2012 1 次提交
  27. 22 9月, 2012 1 次提交
  28. 18 9月, 2012 1 次提交
  29. 20 8月, 2012 1 次提交
  30. 11 7月, 2012 1 次提交
  31. 06 7月, 2012 1 次提交
  32. 16 6月, 2012 2 次提交
    • P
      irqdomain: Simple NUMA awareness. · 5ca4db61
      Paul Mundt 提交于
      While common irqdesc allocation is node aware, the irqdomain code is not.
      
      Presently we observe a number of regressions/inconsistencies on
      NUMA-capable platforms:
      
      - Platforms using irqdomains with legacy mappings, where the
        irq_descs are allocated node-local and the irqdomain data
        structure is not.
      
      - Drivers implementing irqdomains will lose node locality
        regardless of the underlying struct device's node id.
      
      This plugs in NUMA node id proliferation across the various allocation
      callsites by way of_node_to_nid() node lookup. While of_node_to_nid()
      does the right thing for OF-capable platforms it doesn't presently handle
      the non-DT case. This is trivially dealt with by simply wraping in to
      numa_node_id() unconditionally.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      5ca4db61
    • G
      devicetree: add helper inline for retrieving a node's full name · efd68e72
      Grant Likely 提交于
      The pattern (np ? np->full_name : "<none>") is rather common in the
      kernel, but can also make for quite long lines.  This patch adds a new
      inline function, of_node_full_name() so that the test for a valid node
      pointer doesn't need to be open coded at all call sites.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      efd68e72
  33. 15 6月, 2012 2 次提交
  34. 02 5月, 2012 1 次提交