Skip to content
Snippets Groups Projects
  1. Oct 16, 2017
  2. Oct 09, 2017
    • York Sun's avatar
      spl: fix assignment of board info to global data · d1fc0a31
      York Sun authored
      
      Commit 15eb1d43 ("spl: reorder the assignment of board info to
      global data") intended to move assignment of board info earlier,
      into board_init_r(). However, function preload_console_init() is
      called either from spl_board_init() or from board_init_f(). For the
      latter case, the board info assignment is much earlier than proposed
      board_init_r(). Create a new function to fill gd->bd and call this
      function when needed.
      
      Signed-off-by: default avatarYork Sun <york.sun@nxp.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Ravi Babu <ravibabu@ti.com>
      CC: Lukasz Majewski <lukma@denx.de>
      CC: Tom Rini <trini@konsulko.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      d1fc0a31
  3. Oct 06, 2017
  4. Oct 05, 2017
    • Tom Rini's avatar
      common: Drop LOGLEVEL to 4 · 6a3e65de
      Tom Rini authored
      
      While this came in with a default value of 6 I am lowering this to 4.
      The MTD/UBI code has a large number of error messages that we include
      now.  In addition, "normally" warning messages are not included so this
      feels like a more natural level to have.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      6a3e65de
  5. Oct 04, 2017
    • Masahiro Yamada's avatar
      treewide: replace with error() with pr_err() · 9b643e31
      Masahiro Yamada authored
      
      U-Boot widely uses error() as a bit noisier variant of printf().
      
      This macro causes name conflict with the following line in
      include/linux/compiler-gcc.h:
      
        # define __compiletime_error(message) __attribute__((error(message)))
      
      This prevents us from using __compiletime_error(), and makes it
      difficult to fully sync BUILD_BUG macros with Linux.  (Notice
      Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)
      
      Let's convert error() into now treewide-available pr_err().
      
      Done with the help of Coccinelle, excluing tools/ directory.
      
      The semantic patch I used is as follows:
      
      // <smpl>
      @@@@
      -error
      +pr_err
       (...)
      // </smpl>
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      [trini: Re-run Coccinelle]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      9b643e31
    • Masahiro Yamada's avatar
      printk: collect printk stuff into <linux/printk.h> with loglevel support · b44b3026
      Masahiro Yamada authored
      
      When we import code from Linux, with regular re-sync planned, we want
      to use printk() and pr_*().  U-Boot does not support them in a clean
      way.  So, people end up with local macros, or compat headers here and
      there, then we occasionally see build errors of definition conflicts.
      
      We have include/linux/compat.h, but putting all sorts of unrelated
      things into a single header is just a temporal workaround.  Hence this
      patch, to find the best home for all printk variants.  If you want to
      use printk() and friends, please include <linux/printk.h>.  This header
      is self-contained, and pulls in only a few headers.
      
      When I was testing this clean-up, I noticed the image size exceeded
      its platform limit on some boards.  This is because all pr_*() that
      were previously defined as no-op in include/linux/mtd/mtd.h (unless
      CONFIG_MTD_DEBUG is set), are now enabled.
      
      To make such boards happy, this commit also implements CONFIG_LOGLEVEL.
      The concept is similar to the kernel parameter "loglevel".  (Actually,
      the Kconfig help message was taken from kernel-paremeter.txt of Linux)
      Messages with a loglevel smaller than console loglevel will be printed.
      
      The difference is the loglevel is build-time determined.  To save the
      image size, lower priority pr_*() are compiled out.  I set the default
      of CONFIG_LOGLEVEL to 6, i.e. pr_notice and higher priority messages
      are compiled in.
      
      I adjusted CONFIG_LOGLEVEL to avoid build error for some boards.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      [trini: Add in SPL_LOGLEVEL that is the same as LOGLEVEL]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      b44b3026
  6. Oct 01, 2017
  7. Sep 29, 2017
  8. Sep 27, 2017
    • Bin Meng's avatar
      dm: usb: storage: Fix broken read/write when both EHCD and xHCD are enabled · ea7fad91
      Bin Meng authored
      
      When EHCD and xHCD are enabled at the same time, USB storage device
      driver will fail to read/write from/to the storage device attached
      to the xHCI interface, due to its transfer blocks exceeds the xHCD
      driver limitation.
      
      With driver model, we have an API to get the controller's maximum
      transfer size and we can use that to determine the storage driver's
      capability of read/write.
      
      Note: the non-DM version driver is still broken with xHCD and the
      intent here is not to fix the non-DM one, since the xHCD itself is
      already broken in places like 3.0 hub support, etc.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      ea7fad91
    • Bin Meng's avatar
      usb: storage: Refactor to use max_xfer_blk from struct us_data · 6158d0b4
      Bin Meng authored
      
      This adds a new memeber max_xfer_blk in struct us_data to record
      the maximum number of transfer blocks for the storage device.
      
      It is set per HCD setting, and so far is to 65535 for EHCD and 20
      for everything else.
      
      Signed-off-by: default avatarBin Meng <bmeng.cn@gmail.com>
      6158d0b4
  9. Sep 22, 2017
  10. Sep 18, 2017
  11. Sep 16, 2017
  12. Sep 15, 2017
  13. Sep 13, 2017
  14. Sep 12, 2017
  15. Sep 11, 2017
  16. Sep 07, 2017
  17. Sep 04, 2017
    • Niko Mauno's avatar
      splash_source: Verify FIT magic · a7126edc
      Niko Mauno authored
      
      Before reading entire FIT image, add sanity check by testing image
      header against FDT_MAGIC. This should help avoid problems in situations
      where FIT is not yet available from storage device, for example when
      performing initial programming of device.
      
      Cc: Anatolij Gustschin <agust@denx.de>
      Acked-by: default avatarTomas Melin <tomas.melin@vaisala.com>
      a7126edc
  18. Sep 01, 2017
  19. Aug 29, 2017
  20. Aug 28, 2017
    • Niko Mauno's avatar
      splash_source: Verify FIT magic · 22aa21db
      Niko Mauno authored
      
      Before reading entire FIT image, add sanity check by testing image
      header against FDT_MAGIC. This should help avoid problems in situations
      where FIT is not yet available from storage device, for example when
      performing initial programming of device.
      
      Cc: Anatolij Gustschin <agust@denx.de>
      Acked-by: default avatarTomas Melin <tomas.melin@vaisala.com>
      22aa21db
Loading