1. 14 Mar, 2016 13 commits
  2. 13 Mar, 2016 1 commit
  3. 12 Mar, 2016 2 commits
    • Marek Vasut's avatar
      sf: Correct data types in stm_is_locked_sr() · ea9619ae
      Marek Vasut authored
      The stm_is_locked_sr() function is picked from Linux kernel. For reason
      unknown, the 64bit data types used by the function and present in Linux
      were replaced with 32bit unsigned ones, which causes trouble.
      
      The testcase performed was done using ST M25P80 chip.
      The command used was:
       => sf protect unlock 0 0x10000
      
      The call chain starts in stm_unlock(), which calls stm_is_locked_sr()
      with negative ofs argument. This works fine in Linux, where the "ofs"
      is loff_t, which is signed long long, while this fails in U-Boot, where
      "ofs" is u32 (unsigned int). Because of this signedness problem, the
      expression past the return statement to be incorrectly evaluated to 1,
      which in turn propagates back to stm_unlock() and results in -EINVAL.
      
      The correction is very simple, just use the correctly sized data types
      with correct signedness in the function to make it work as intended.
      Signed-off-by: 's avatarMarek Vasut <marex@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Reviewed-by: 's avatarJagan Teki <jteki@openedev.com>
      ea9619ae
    • Lokesh Vutla's avatar
      dm: ti_qspi: Fix conversion of address to a pointer · e6601df8
      Lokesh Vutla authored
      TI QSPI driver directly typecasts fdt_addr_t to a pointer. This is
      not strictly correct, as it gives a build warning when fdt_addr_t is u64.
      So, use map_physmem for a proper typecasts.
      
      This is inspired by commit 167efe01 ("dm: ns16550: Use an address
      instead of a pointer for the uart base")
      Signed-off-by: 's avatarLokesh Vutla <lokeshvutla@ti.com>
      Reviewed-by: 's avatarJagan Teki <jteki@openedev.com>
      Reviewed-by: 's avatarTom Rini <trini@konsulko.com>
      Reviewed-by: 's avatarMugunthan V N <mugunthanvnm@ti.com>
      e6601df8
  4. 11 Mar, 2016 1 commit
  5. 10 Mar, 2016 4 commits
  6. 09 Mar, 2016 2 commits
    • Daniel Schwierzeck's avatar
      MIPS: pic32mzdask: use CONFIG_USE_PRIVATE_LIBGCC=y · 40a09be2
      Daniel Schwierzeck authored
      MIPS EL boards should define CONFIG_USE_PRIVATE_LIBGCC=y to work
      with EB-only toolchains like the one from kernel.org. If one do
      not globally set CONFIG_USE_PRIVATE_LIBGCC=y, the build fails with:
      
      /opt/gcc-4.9.0-nolibc/mips-linux/bin/mips-linux-ld.bfd: /opt/gcc-4.9.0-nolibc/mips-linux/bin/../lib/gcc/mips-linux/4.9.0/libgcc.a(_lshrdi3.o): compiled for a big endian system and target is little endian
      /opt/gcc-4.9.0-nolibc/mips-linux/bin/mips-linux-ld.bfd: /opt/gcc-4.9.0-nolibc/mips-linux/bin/../lib/gcc/mips-linux/4.9.0/libgcc.a(_lshrdi3.o): endianness incompatible with that of the selected emulation
      /opt/gcc-4.9.0-nolibc/mips-linux/bin/mips-linux-ld.bfd: failed to merge target specific data of file /opt/gcc-4.9.0-nolibc/mips-linux/bin/../lib/gcc/mips-linux/4.9.0/libgcc.a(_lshrdi3.o)
      /opt/gcc-4.9.0-nolibc/mips-linux/bin/mips-linux-ld.bfd: /opt/gcc-4.9.0-nolibc/mips-linux/bin/../lib/gcc/mips-linux/4.9.0/libgcc.a(_ashldi3.o): compiled for a big endian system and target is little endian
      /opt/gcc-4.9.0-nolibc/mips-linux/bin/mips-linux-ld.bfd: /opt/gcc-4.9.0-nolibc/mips-linux/bin/../lib/gcc/mips-linux/4.9.0/libgcc.a(_ashldi3.o): endianness incompatible with that of the selected emulation
      /opt/gcc-4.9.0-nolibc/mips-linux/bin/mips-linux-ld.bfd: failed to merge target specific data of file /opt/gcc-4.9.0-nolibc/mips-linux/bin/../lib/gcc/mips-linux/4.9.0/libgcc.a(_ashldi3.o)
      /work/git-trees/u-boot-mips/Makefile:1171: recipe for target 'u-boot' failed
      
      One example for a failing build is Travis CI.
      Signed-off-by: 's avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Reviewed-by: 's avatarPurna Chandra Mandal <purna.mandal@microchip.com>
      40a09be2
    • Matthias Schiffer's avatar
      MIPS: fix mips_cache fallback without __builtin_mips_cache · 499b8475
      Matthias Schiffer authored
      The "R" constraint supplies the address of an variable in a register. Use
      "r" instead and adjust asm to supply the content of addr in a register
      instead.
      
      Fixes: 2b8bcc5a ("MIPS: avoid .set ISA for cache operations")
      Signed-off-by: 's avatarMatthias Schiffer <mschiffer@universe-factory.net>
      Cc: Paul Burton <paul.burton@imgtec.com>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      499b8475
  7. 08 Mar, 2016 12 commits
  8. 05 Mar, 2016 2 commits
  9. 02 Mar, 2016 3 commits