23 Nov, 2014

4 commits

  • The sandbox/ext4/fat/generic fs commands do not gracefully deal with files
    greater than 2GB. Negative values are returned in such cases.

    To handle this, the fs functions have been modified to take an additional
    parameter of type "* loff_t" which is then populated. The return value
    of the fs functions are used only for error conditions.

    Signed-off-by: Suriyan Ramasami
    Acked-by: Simon Glass
    [trini: Update board/gdsys/p1022/controlcenterd-id.c,
    drivers/fpga/zynqpl.c for changes]
    Signed-off-by: Tom Rini

    Suriyan Ramasami
     
  • When enumerating devices, honour the pci_skip_dev() function. This can
    be used by PCI controller drivers to restrict which devices will be
    probed.

    This is required by the NVIDIA Tegra PCIe controller driver, which will
    fail with a data abort exception if an access is attempted to a device
    number larger than 0 outside of bus 0. pci_skip_dev() is therefore
    implemented to prevent any such accesses.

    Signed-off-by: Thierry Reding
    Signed-off-by: Simon Glass

    Thierry Reding
     
  • Except the first loop, init_sata() should return 0 instead of 1
    in the others.

    This patch fix the issue of the 2nd sata port not workable on pci-sata card.

    Signed-off-by: Pengbo Li

    li pengbo
     
  • U-Boot has never cared about the type when we get max/min of two
    values, but Linux Kernel does. This commit gets min, max, min3, max3
    macros synced with the kernel introducing type checks.

    Many of references of those macros must be fixed to suppress warnings.
    We have two options:
    - Use min, max, min3, max3 only when the arguments have the same type
    (or add casts to the arguments)
    - Use min_t/max_t instead with the appropriate type for the first
    argument

    Signed-off-by: Masahiro Yamada
    Acked-by: Pavel Machek
    Acked-by: Lukasz Majewski
    Tested-by: Lukasz Majewski
    [trini: Fixup arch/blackfin/lib/string.c]
    Signed-off-by: Tom Rini

    Masahiro Yamada
     

21 Nov, 2014

3 commits

  • U-Boot has imported various utility macros from Linux
    scattering them to various places without consistency.

    In include/common.h are min, max, min3, max3, ARRAY_SIZE, ALIGN,
    container_of, DIV_ROUND_UP, etc.
    In include/linux/compat.h are min_t, max_t, round_up, round_down,
    etc.
    We also have duplicated defines of min_t in some *.c files.

    Moreover, we are suffering from too cluttered include/common.h.

    This commit moves various macros that originate in
    include/linux/kernel.h of Linux to their original position.

    Note:
    This commit simply moves the macros; the macros roundup,
    min, max, min2, max3, ARRAY_SIZE are different
    from those of Linux at this point.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • The Linux-compatible macro DIV_ROUND_CLOSEST is a bit more flexible
    and safer than DIV_ROUND.

    For example,
    foo = DIV_ROUND_CLOSEST(x, y++)
    works expectedly, but
    foo = DIV_ROUND(x, y++)
    does not. (y is incremented twice.)

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • CONFIG_CPU_ARM920T was introduced into Kconfig by commit 2e07c249a67e
    (kconfig: arm: introduce symbol for ARM CPUs).

    This commit removes all the defines of CONFIG_ARM920T and replaces the
    only reference in drivers/usb/host/ohci-hcd.c with CONFIG_CPU_ARM920T.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

20 Nov, 2014

2 commits


19 Nov, 2014

2 commits

  • The device id makes u-boot think that this chip needs
    cfi_reverse_geometry(), which is not the case.
    Add it to jedec_flash, so it is handled properly.

    Signed-off-by: Dirk Eibach
    Signed-off-by: Stefan Roese

    Dirk Eibach
     
  • ff94bc40af3481d47546595ba73c136de6af6929 "mtd, ubi, ubifs: resync with Linux-3.14"
    introduced the writebufsize field in struct mtd_info, which
    is not initialized in the cfi_flash driver, which leads in
    not working ubi on cfi flashes. Fix it

    Signed-off-by: Heiko Schocher
    Reported-by: Andrew Ruder
    Acked-by: Stefan Roese
    Acked-by: Andrew Ruder

    Heiko Schocher
     

17 Nov, 2014

11 commits


15 Nov, 2014

4 commits


13 Nov, 2014

5 commits


12 Nov, 2014

1 commit


11 Nov, 2014

4 commits


10 Nov, 2014

4 commits

  • In case of repeated START condition, the restart has to be kicked
    before clear status (MSR register). If it is kicked after clear status,
    R-Car I2C may transfer data (TXD register) or receive data (RXD register)
    instead of transferring slave address (MAR register).

    Signed-off-by: Ryo Kataoka
    Signed-off-by: Nobuhiro Iwamatsu

    Nobuhiro Iwamatsu
     
  • Some slow I2C devices like Power Monitor(ZM7304) at times
    do not work well with low timeout value, so I2C bus get stuck
    during read cycle with this device, changing it to 100ms from
    10ms works fine

    A lot of other i2c drivers like mxc and i2c drivers of BOOTROM
    also use relax timeouts to give sufficient ticks to work well
    with slower devices

    Signed-off-by: Shaveta Leekha
    Signed-off-by: Poonam Aggrwal

    Shaveta Leekha
     
  • ppc4xx i2c master gets stuck on errors while repeated start is
    active. Can be easily reproduced by "i2c md" on an unpopulated
    i2c address. There is not stop condition given, scl remains
    pulled low.
    The only way out seems to be doing a stop manually and then a
    soft reset.

    Signed-off-by: Dirk Eibach
    Reviewed-by: Stefan Roese

    Dirk Eibach
     
  • Debugging some i2c trouble I saw on my scope that repeated
    start is not working properply. The 4xx even held clock pulled down
    after transfers. Having a look in the driver I realized
    that IIC_CNTL_RPST is set on that part of the transfer that should
    begin with a repeated start. But repeated start is about not sending a
    stop condition, so IIC_CNTL_RPST has to be set on the last transfer
    before the repeated start happens.

    Signed-off-by: Dirk Eibach
    Reviewed-by: Stefan Roese

    Dirk Eibach