1. 14 Oct, 2008 3 commits
  2. 13 Oct, 2008 5 commits
  3. 12 Oct, 2008 6 commits
  4. 10 Oct, 2008 4 commits
  5. 08 Oct, 2008 8 commits
  6. 07 Oct, 2008 5 commits
  7. 04 Oct, 2008 1 commit
  8. 02 Oct, 2008 5 commits
    • David Gibson's avatar
      libfdt: Add function to explicitly expand aliases · 9a6cf73a
      David Gibson authored
      Kumar has already added alias expansion to fdt_path_offset().
      However, in some circumstances it may be convenient for the user of
      libfdt to explicitly get the string expansion of an alias.  This patch
      adds a function to do this, fdt_get_alias(), and uses it to implement
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
    • Mike Frysinger's avatar
      cfi_flash: do not reset flash when probe fails · 2215987e
      Mike Frysinger authored
      The CFI flash driver starts at flash_init() which calls down into
      flash_get_size().  This starts by calling flash_detect_cfi().  If said
      function fails, flash_get_size() finishes by attempting to reset the
      flash.  Unfortunately, it does this with an info->portwidth set to 0x10
      which filters down into flash_make_cmd() and that happily smashes the
      stack by sticking info->portwidth bytes into a cfiword_t variable that
      lives on the stack.  On a 64bit system you probably won't notice, but
      killing the last 8 bytes on a 32bit system usually leads to a corrupt
      return address.  Which is what happens on a Blackfin system.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
    • Stefan Roese's avatar
      fdt: Overwrite /chosen node in bootm if it already exists in the dtb · 3e385772
      Stefan Roese authored
      Set force parameter in fdt_chosen() call in do_bootm_linux() call.
      Without this, the chosen node is not overwritten if it already
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
    • Jon Loeliger's avatar
      Fix an overflow case in fdt_offset_ptr() detected by GCC 4.3. · 741a6d01
      Jon Loeliger authored
      Using Gcc 4.3 detected this problem:
          ../dtc/libfdt/fdt.c: In function 'fdt_next_tag':
          ../dtc/libfdt/fdt.c:82: error: assuming signed overflow does not
          occur when assuming that (X + c) < X is always false
      To fix the problem, treat the offset as an unsigned int.
      The problem report and proposed fix were provided
      by Steve Papacharalambous <stevep@freescale.com>.
      Signed-off-by: default avatarJon Loeliger <jdl@freescale.com>
    • David Gibson's avatar
      libfdt: Fix bugs in fdt_get_path() · bbdbc7cb
      David Gibson authored
      The current implementation of fdt_get_path() has a couple of bugs,
      fixed by this patch.
      First, contrary to its documentation, on success it returns the length
      of the node's path, rather than 0.  The testcase is correspondingly
      wrong, and the patch fixes this as well.
      Second, in some circumstances, it will return -FDT_ERR_BADOFFSET
      instead of -FDT_ERR_NOSPACE when given insufficient buffer space.
      Specifically this happens when there is insufficient space even to
      hold the path's second last component.  This behaviour is corrected,
      and the testcase updated to check it.
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
  9. 01 Oct, 2008 1 commit
  10. 30 Sep, 2008 1 commit
  11. 24 Sep, 2008 1 commit