1. 17 10月, 2017 3 次提交
  2. 22 7月, 2017 1 次提交
  3. 22 6月, 2017 1 次提交
  4. 15 6月, 2017 1 次提交
  5. 01 6月, 2017 2 次提交
  6. 03 4月, 2017 1 次提交
  7. 29 3月, 2017 1 次提交
  8. 17 1月, 2017 1 次提交
  9. 10 12月, 2016 1 次提交
  10. 18 11月, 2016 1 次提交
    • S
      of: base: add support to get machine model name · e5269794
      Sudeep Holla 提交于
      Currently platforms/drivers needing to get the machine model name are
      replicating the same snippet of code. In some case, the OF reference
      counting is either missing or incorrect.
      
      This patch adds support to read the machine model name either using
      the "model" or the "compatible" property in the device tree root node
      to the core OF/DT code.
      
      This can be used to remove all the duplicate code snippets doing exactly
      same thing later.
      
      Cc: Rob Herring <robh+dt@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Signed-off-by: NSudeep Holla <sudeep.holla@arm.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      e5269794
  11. 11 11月, 2016 1 次提交
    • A
      of/overlay: add of overlay notifications · 39a842e2
      Alan Tull 提交于
      This patch add of overlay notifications.
      
      When DT overlays are being added, some drivers/subsystems
      need to see device tree overlays before the changes go into
      the live tree.
      
      This is distinct from reconfig notifiers that are
      post-apply or post-remove and which issue very granular
      notifications without providing access to the context
      of a whole overlay.
      
      The following 4 notificatons are issued:
        OF_OVERLAY_PRE_APPLY
        OF_OVERLAY_POST_APPLY
        OF_OVERLAY_PRE_REMOVE
        OF_OVERLAY_POST_REMOVE
      
      In the case of pre-apply notification, if the notifier
      returns error, the overlay will be rejected.
      
      This patch exports two functions for registering/unregistering
      notifications:
        of_overlay_notifier_register(struct notifier_block *nb)
        of_overlay_notifier_unregister(struct notifier_block *nb)
      
      The of_mutex is held during these notifications. The
      notification data includes pointers to the overlay target
      and the overlay:
      
      struct of_overlay_notify_data {
             struct device_node *overlay;
             struct device_node *target;
      };
      Signed-off-by: NAlan Tull <atull@opensource.altera.com>
      Acked-by: NRob Herring <robh@kernel.org>
      Acked-by: NMoritz Fischer <moritz.fischer@ettus.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      39a842e2
  12. 15 9月, 2016 1 次提交
    • R
      of: Add array read functions with min/max size limits · a67e9472
      Richard Fitzgerald 提交于
      Add a new set of array reading functions that take a minimum and
      maximum size limit and will fail if the property size is not within
      the size limits. This makes it more convenient for drivers that
      use variable-size DT arrays which must be bounded at both ends -
      data must be at least N entries but must not overflow the array
      it is being copied into. It is also more efficient than making this
      functionality out of existing public functions and avoids duplication.
      
      The existing array functions have been left in the API, since there
      are a very large number of clients of those functions and their
      existing functionality is still useful. This avoids turning a small
      API improvement into a major kernel rework.
      
      The old functions have been turned into mininmal static inlines calling
      the new functions. The old functions had no upper limit on the actual
      size of the dts entry, to preserve this functionality rather than keeping
      two near-identical implementations, if the new function is called with
      max=0 there is no limit on the size of the dts entry but only the min
      number of elements are read.
      Signed-off-by: NRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      a67e9472
  13. 20 7月, 2016 1 次提交
  14. 28 6月, 2016 1 次提交
    • D
      of: Add a new macro to declare_of for one parameter function returning a value · c35d9292
      Daniel Lezcano 提交于
      The macro OF_DECLARE_1 expect a void (*func)(struct device_node *) while the
      OF_DECLARE_2 expect a int (*func)(struct device_node *, struct device_node *).
      
      The second one allows to pass an init function returning a value, which make
      possible to call the functions in the table and check the return value in order
      to catch at a higher level the errors and handle them from there instead of
      doing a panic in each driver (well at least this is the case for the clkevt).
      
      Unfortunately the OF_DECLARE_1 does not allow that and that lead to some code
      duplication and crappyness in the drivers.
      
      The OF_DECLARE_1 is used by all the clk drivers and the clocksource/clockevent
      drivers. It is not possible to do the change in one shot as we have to change
      all the init functions.
      
      The OF_DECLARE_2 specifies an init function prototype with two parameters with
      the node and its parent. The latter won't be used, ever, in the timer drivers.
      
      Introduce a OF_DECLARE_1_RET macro to be used, and hopefully we can smoothly
      and iteratively change the users of OF_DECLARE_1 to use the new macro instead.
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NRob Herring <robh@kernel.org>
      c35d9292
  15. 26 6月, 2016 1 次提交
  16. 03 6月, 2016 1 次提交
  17. 28 4月, 2016 1 次提交
  18. 20 4月, 2016 4 次提交
  19. 16 4月, 2016 1 次提交
  20. 04 3月, 2016 1 次提交
  21. 25 1月, 2016 1 次提交
  22. 11 11月, 2015 1 次提交
  23. 26 8月, 2015 1 次提交
  24. 25 6月, 2015 1 次提交
  25. 23 6月, 2015 1 次提交
  26. 04 6月, 2015 1 次提交
  27. 28 5月, 2015 2 次提交
  28. 27 5月, 2015 1 次提交
  29. 25 5月, 2015 1 次提交
  30. 15 4月, 2015 1 次提交
    • K
      of: Add helper function to check MMIO register endianness · 37786c7f
      Kevin Cernekee 提交于
      SoC peripherals can come in several different flavors:
      
       - little-endian: registers always need to be accessed in LE mode (so the
         kernel should perform a swap if the CPU is running BE)
      
       - big-endian: registers always need to be accessed in BE mode (so the
         kernel should perform a swap if the CPU is running LE)
      
       - native-endian: the bus will automatically swap accesses, so the kernel
         should never swap
      
      Introduce a function that checks an OF device node to see whether it
      contains a "big-endian" or "native-endian" property.  For the former case,
      always return true.  For the latter case, return true iff the kernel was
      built for BE (implying that the BE MMIO accessors do not perform a swap).
      Otherwise return false, assuming LE registers.
      
      LE registers are assumed by default because most existing drivers (libahci,
      serial8250, usb) always use readl/writel in the absence of instructions
      to the contrary, so that will be our fallback.
      Signed-off-by: NKevin Cernekee <cernekee@gmail.com>
      Reviewed-by: NPeter Hurley <peter@hurleysoftware.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NRob Herring <robh@kernel.org>
      37786c7f
  31. 28 3月, 2015 1 次提交
  32. 18 3月, 2015 1 次提交
  33. 04 12月, 2014 1 次提交
    • G
      of: Drop ->next pointer from struct device_node · 70161ff3
      Grant Likely 提交于
      The ->next pointer in struct device_node is a hanger-on from when it was
      used to iterate over the whole tree by a particular device_type property
      value. Those days are long over, but the fdt unflattening code still
      uses it to put nodes in the unflattened tree into the same order as node
      in the flat tree. By reworking the unflattening code to reverse the list
      after unflattening all the children of a node, the pointer can be
      dropped which gives a small amount of memory savings.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      Acked-by: NFrank Rowand <frank.rowand@sonymobile.com>
      Cc: Gaurav Minocha <gaurav.minocha.os@gmail.com>
      70161ff3