Skip to content
Snippets Groups Projects
  1. Sep 15, 2017
  2. Sep 12, 2017
  3. Jul 10, 2017
  4. Jun 02, 2017
  5. Apr 13, 2017
  6. Apr 10, 2017
  7. Jan 14, 2017
    • David Gibson's avatar
      libfdt: Correct fdt handling of overlays without fixups and base trees without symbols · 46743c41
      David Gibson authored
      
      The fdt_overlay_apply() function purports to support the edge cases where
      an overlay has no fixups to be applied, or a base tree which has no
      symbols (the latter can only work if the former is also true).  However it
      gets it wrong in a couple of small ways:
      
        * In the no fixups case, it doesn't fail immediately, but will attempt
          fdt_for_each_property_offset() giving -FDT_ERR_NOTFOUND as the node
          offset, which will fail.  Instead it should succeed immediately, since
          there's nothing to do.
        * In the case of no symbols, it again doesn't fail immediately.  However
          if there is an actual fixup it will fail with an unexpected error,
          because -FDT_ERR_NOTFOUND is passed to fdt_getprop() when attempting to
          look up the symbols.  We should instead return -FDT_ERR_NOTFOUND
          directly.
      
      Both of these errors lead to the code returning misleading error codes in
      failing cases.
      
      [ DTC commit: 7d8ef6e1db9794f72805a0855f4f7f12fadd03d3 ]
      
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      Signed-off-by: default avatarStefan Agner <stefan.agner@toradex.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      46743c41
  8. Oct 24, 2016
  9. Oct 23, 2016
  10. Oct 13, 2016
  11. Sep 23, 2016
  12. Sep 19, 2016
  13. Aug 20, 2016
  14. Jul 15, 2016
  15. Jun 19, 2016
  16. Mar 14, 2016
    • Simon Glass's avatar
      libfdt: Add a function to write a property placeholder · f8a2d7a4
      Simon Glass authored
      
      The existing function to add a new property to a tree being built requires
      that the entire contents of the new property be passed in. For some
      applications it is more convenient to be able to add the property contents
      later, perhaps by reading from a file. This avoids double-buffering of the
      contents.
      
      Add a new function to support this and adust the existing fdt_property() to
      use it.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      f8a2d7a4
  17. Nov 04, 2015
  18. Jul 21, 2015
  19. Jul 20, 2015
Loading