1. 30 5月, 2018 7 次提交
  2. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  3. 04 10月, 2017 1 次提交
    • M
      treewide: replace with error() with pr_err() · 9b643e31
      Masahiro Yamada 提交于
      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: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      [trini: Re-run Coccinelle]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      9b643e31
  4. 22 8月, 2017 1 次提交
  5. 21 8月, 2017 2 次提交
  6. 16 8月, 2017 1 次提交
  7. 12 5月, 2017 1 次提交
    • N
      usb: gadget: avoid variable name clipping in cb_getvar · b1f2a17c
      nicolas.le.bayon@st.com 提交于
      Hi,
      
      A kind reminder to look at this patch (already reviewed by Marek and acked by Lukasz), and if possible to put it in the next pull list, or the one after is timing is too short.
      
      Thanks in advance for your time
      
      Best Regards
      Nicolas
      
      -----Original Message-----
      From: Nicolas LE BAYON
      Sent: mardi 25 avril 2017 10:18
      To: Nicolas LE BAYON <nicolas.le.bayon@st.com>; u-boot@lists.denx.de; lukma@denx.de; marex@denx.de
      Cc: nlebayon@gmail.com; Patrice CHOTARD <patrice.chotard@st.com>; Jean-philippe ROMAIN <jean-philippe.romain@st.com>
      Subject: [U-Boot][PATCH v7] usb: gadget: avoid variable name clipping in cb_getvar
      
      From: Nicolas Le Bayon <nicolas.le.bayon@st.com>
      
      Instead of using a fixed-size array to store variable name, preferring a dynamic allocation treats correctly all variable name lengths.
      Variable names are growing through releases and features. By this way, name clipping is prevented.
      Signed-off-by: NNicolas Le Bayon <nicolas.le.bayon@st.com>
      Reviewed-by: NMarek Vasut <marex@denx.de>
      Acked-by: NLukasz Majewski <lukma@denx.de>
      b1f2a17c
  8. 28 6月, 2016 2 次提交
  9. 25 4月, 2016 3 次提交
  10. 02 4月, 2016 1 次提交
  11. 25 2月, 2016 1 次提交
  12. 15 1月, 2016 1 次提交
  13. 13 11月, 2015 3 次提交
    • M
      fastboot: Implement NAND backend · bf8940d3
      Maxime Ripard 提交于
      So far the fastboot code was only supporting MMC-backed devices for its
      flashing operations (flash and erase).
      
      Add a storage backend for NAND-backed devices.
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      bf8940d3
    • M
      fastboot: Implement flashing session counter · 6c9e00ee
      Maxime Ripard 提交于
      The fastboot flash command that writes an image to a partition works in
      several steps:
      
      1 - Retrieve the maximum size the device can download through the
          "max-download-size" variable
      
      2 - Retrieve the partition type through the "partition-type:%s" variable,
          that indicates whether or not the partition needs to be erased (even
          though the fastboot client has minimal support for that)
      
      3a - If the image is smaller than what the device can handle, send the image
           and flash it.
      
      3b - If the image is larger than what the device can handle, create a
           sparse image, and split it in several chunks that would fit. Send the
           chunk, flash it, repeat until we have no more data to send.
      
      However, in the 3b case, the subsequent transfers have no particular
      identifiers, the protocol just assumes that you would resume the writes
      where you left it.
      
      While doing so works well, it also means that flashing two subsequent
      images on the same partition (for example because the user made a mistake)
      would not work withouth flashing another partition or rebooting the board,
      which is not really intuitive.
      
      Since we have always the same pattern, we can however maintain a counter
      that will be reset every time the client will retrieve max-download-size,
      and incremented after each buffer will be flashed, that will allow us to
      tell whether we should simply resume the flashing where we were, or start
      back at the beginning of the partition.
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      6c9e00ee
    • M
      fastboot: Move fastboot response functions to fastboot core · 3c8f98f5
      Maxime Ripard 提交于
      The functions and a few define to generate a fastboot message to be sent
      back to the host were so far duplicated among the users.
      
      Move them all to a common place.
      Signed-off-by: NMaxime Ripard <maxime.ripard@free-electrons.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      3c8f98f5
  14. 21 10月, 2015 1 次提交
  15. 22 7月, 2015 3 次提交
    • P
      usb: CONFIG_USB_FASTBOOT prefix replacement for consistency · a588d99a
      Paul Kocialkowski 提交于
      FASTBOOT is defined both by CONFIG_USB_FUNCTION_FASTBOOT AND CONFIG_CMD_FASTBOOT, so it doesn't
      make much sense to have a CONFIG_USB_FASTBOOT prefix for fastboot-specific options, especially
      given that other config options for fastboot use the CONFIG_FASTBOOT prefix.
      
      This replaces the CONFIG_USB_FASTBOOT prefix with CONFIG_FASTBOOT, for consistency.
      Signed-off-by: NPaul Kocialkowski <contact@paulk.fr>
      a588d99a
    • P
      usb: gadget: fastboot: Dequeue the previous IN request for the current request · bc9071c9
      Paul Kocialkowski 提交于
      Recent versions of the fastboot tool will query the partition type before doing
      an operation on a partition (such as erase, flash, etc). It will then submit
      the operation as soon as the response for the partition type is received.
      
      Usually, the MUSB controller will see that the partition type request return
      status was read by the host at the very same time as the actual operation
      request is submitted by the host. However, the operation will be read first
      (int_rx is handled first in musb_interrupt) and after it is completed, the
      fastboot USB gadget driver will send another return status. Hence, this happens
      before the musb gadget framework has had a chance to handle the previous
      acknowledgement that the host read the return status and dequeue the request.
      
      The host will then usually empty the FIFO by the time musb_interrupt gets around
      handling the return status acknowledgement (for the previous request, this is
      still on the same musb_interrupt call), so no other interrupt is generated and
      the most recent return status acknowledgement remains unaccounted for.
      
      It will then be used as a response for the next command, and the proper response
      for it will be delayed to the next command, and so on.
      
      Dequeuing the previous IN request in the fastboot code ensures that no previous
      return status remains. It is acceptable to do it since there is no callback to
      it anyways.
      Signed-off-by: NPaul Kocialkowski <contact@paulk.fr>
      bc9071c9
    • P
      usb: gadget: fastboot: Request status and length check in rx handler · 94b385fa
      Paul Kocialkowski 提交于
      This avoids handling requests that have an error status or no data.
      In particular, this avoids showing unnecessary error messages when the USB
      gadget gets disconnected (e.g. with fastboot continue) and the fastboot USB
      gadget driver sends an error back to the host (that has disconnected already).
      Signed-off-by: NPaul Kocialkowski <contact@paulk.fr>
      94b385fa
  16. 14 4月, 2015 1 次提交
    • A
      fastboot: add support for reboot-bootloader command · e2ec3e46
      Alexey Firago 提交于
      The "fastboot reboot-bootloader" command is defined to
      re-enter into fastboot mode after rebooting into
      bootloader. This command is usually used after updating
      bootloader via fastboot.
      
      This commit implements only a generic side of the
      command - setting of the reset flag and then resetting.
      Setting of the reset flag is implemented using __weak
      fb_set_reboot_flag() function. The actual setting and
      checking of the reset flag should be implemented by
      a boot script and/or board/SoC specific code.
      Signed-off-by: NAlexey Firago <alexey_firago@mentor.com>
      Tested-by: NSteve Rae <srae@broadcom.com>
      [Test HW: bcm28155_ap board]
      e2ec3e46
  17. 26 2月, 2015 5 次提交
  18. 18 12月, 2014 1 次提交
    • R
      fastboot: add support for continue command · 267abc62
      Rob Herring 提交于
      The fastboot continue command is defined to exit fastboot and continue
      autoboot. This commit implements the continue command and the exiting of
      fastboot only. Subsequent u-boot commands can be processed after exiting
      fastboot. Autoboot should implement a boot script such as "fastboot; mmc
      read <...>; bootm" to fully implement the fastboot continue function.
      Signed-off-by: NRob Herring <robh@kernel.org>
      Tested-by: NLukasz Majewski <l.majewski@samsung.com>
      [TestHW: Exynos4412-Trats2]
      267abc62
  19. 07 10月, 2014 1 次提交
  20. 06 10月, 2014 3 次提交