07 Jan, 2020

1 commit

  • When the `dfu` command is called from the U-Boot environment,
    it now accepts an optional parameter that specifies a timeout (in seconds).
    If a DFU connection is not made within that time the `dfu` command exits
    (as it would if Ctrl+C was pressed). If the timeout is left empty or being
    zero the `dfu` command behaves as it does now.

    This is useful for allowing U-Boot to check to see if anything wants to
    upload new firmware before continuing to boot.

    The patch is based on the commit
    https://github.com/01org/edison-u-boot/commit/5e966ccc3c65c18c9783741fa04e0c45e021780c
    by Sebastien Colleur, which has been heavily reworked due to U-Boot changes
    in the past.

    Signed-off-by: Brad Campbell
    Signed-off-by: Andy Shevchenko

    Andy Shevchenko
     

07 Dec, 2018

1 commit


07 May, 2018

1 commit

  • 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: Tom Rini

    Tom Rini
     

04 Oct, 2017

1 commit

  • 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:

    //
    @@@@
    -error
    +pr_err
    (...)
    //

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass
    [trini: Re-run Coccinelle]
    Signed-off-by: Tom Rini

    Masahiro Yamada
     

12 May, 2017

1 commit


03 Nov, 2016

1 commit


28 Sep, 2016

2 commits