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
     

19 Jun, 2017

2 commits


28 Jul, 2016

1 commit


21 Apr, 2016

1 commit

  • Previously, ret could be used uninitialized if
    blk_get_device_part_str() failed. Default to ret being set to -1 so
    that we always return an err up if we have a problem and then invert the
    logic on testing ums_count as when that is non-zero is the time we can
    return 0.

    Cc: John Tobias
    Acked-by: Marek Vasut
    Signed-off-by: Tom Rini

    Tom Rini
     

20 Apr, 2016

1 commit

  • By applying this patch, it will give us some flexibility to expose
    a selected partition/s.

    e.g:
    1. To expose several partitions
    ums 0 mmc 0:1,0:6

    2. To expose the all partitions
    ums 0 mmc 0:0

    3. To expose multiple partititions on several devices
    ums 0 mmc 0:1,1:6

    4. It support legacy format
    ums 0 mmc 0

    Signed-off-by: John Tobias

    John Tobias
     

15 Mar, 2016

3 commits


25 Jan, 2016

1 commit

  • Now that they are in their own directory, we can remove this prefix.
    This makes it easier to find a file since the prefix does not get in the
    way.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng
    Reviewed-by: Heiko Schocher
    Acked-by: Stefan Roese
    Acked-by: Przemyslaw Marczak

    Simon Glass