1. 15 3月, 2016 34 次提交
  2. 14 3月, 2016 1 次提交
  3. 13 3月, 2016 1 次提交
  4. 12 3月, 2016 2 次提交
    • M
      sf: Correct data types in stm_is_locked_sr() · ea9619ae
      Marek Vasut 提交于
      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: NMarek Vasut <marex@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Reviewed-by: NJagan Teki <jteki@openedev.com>
      ea9619ae
    • L
      dm: ti_qspi: Fix conversion of address to a pointer · e6601df8
      Lokesh Vutla 提交于
      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: NLokesh Vutla <lokeshvutla@ti.com>
      Reviewed-by: NJagan Teki <jteki@openedev.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Reviewed-by: NMugunthan V N <mugunthanvnm@ti.com>
      e6601df8
  5. 11 3月, 2016 1 次提交
  6. 10 3月, 2016 1 次提交