15 Nov, 2018

3 commits


14 Nov, 2018

4 commits


13 Nov, 2018

5 commits

  • Commit 9c5b00973bce ("Convert CONFIG_MTD_PARTITIONS et al to Kconfig")
    introduced a publicly visible Kconfig entry for the
    CONFIG_MTD_PARTITIONS option, while the rework on MTD partitioning
    was in progress, and we somehow did not notice that the same Kconfig
    entry was added by commit 4048a5c519a8 ("mtd: declare MTD_PARTITIONS
    symbol in Kconfig"), but this time as an invisible entry (this can
    only be selected by other options).

    Keep the non-visible version of this symbol, since MTD_PARTITIONS is
    not something the user should be able to enable/disable directly.

    Fixes: 4048a5c519a8 ("mtd: declare MTD_PARTITIONS symbol in Kconfig")
    Signed-off-by: Boris Brezillon
    Reviewed-by: Lukasz Majewski
    Reviewed-by: Jagan Teki

    Boris Brezillon
     
  • Commit c58fb2cdb3e4 ("cmd: ubi: clean the partition handling")
    introduced a call to mtd_probe_devices() in the ubi_attach() path
    and this function takes care of parsing mtdparts/mtdids and
    creating/registering the associated mtd partitions.

    The mtdparts_init() call in the ubi_detach() path is not only
    unnecessary but can sometimes print error messages even when things
    work properly (that's the case with SPI NAND devices that have not
    been probed with 'mtd list'), which is misleading.

    Remove this call to mtdparts_init() and drop the dependency on
    CMD_MTDPARTS.

    Fixes: c58fb2cdb3e4 ("cmd: ubi: clean the partition handling")
    Reported-by: Stefan Roese
    Signed-off-by: Boris Brezillon
    Tested-by: Stefan Roese
    Reviewed-by: Lukasz Majewski
    Reviewed-by: Jagan Teki

    Boris Brezillon
     
  • gwventana configs are relying on CMD_UBI to select CMD_MTDPARTS,
    which is then making {MTDIDS,MTDPARTS}_DEFAULT options available.

    We are about to remove the 'select CMD_MTDPARTS' statement in the
    CMD_UBI entry, but if we do that without first making sure
    {MTDIDS,MTDPARTS}_DEFAULT are visible, we end up with a build
    failure when building gwventana configs.

    Address that by adding a depends on MTD_PARTITIONS to
    {MTDIDS,MTDPARTS}_DEFAULT which does the trick since CMD_UBI selects
    MTD_UBI which in turn selects MTD_PARTITIONS.

    We also get rid of the depends on CMD_MTD, since CMD_MTD also selects
    MTD_PARTITIONS.

    Reported-by: Jagan Teki
    Signed-off-by: Boris Brezillon
    Reviewed-by: Lukasz Majewski
    Reviewed-by: Jagan Teki

    Boris Brezillon
     
  • dfu_fill_entity_nand() uses find_dev_and_part() and mtdparts_init()
    which are provided by cmd/mtdparts.c.

    Add the dependency to avoid build failures when CMD_MTDPARTS is not
    selected.

    Reported-by: Jagan Teki
    Fixes: 6828e602b722d ("dfu: Migrate to Kconfig")
    Signed-off-by: Boris Brezillon
    Reviewed-by: Lukasz Majewski
    Reviewed-by: Jagan Teki

    Boris Brezillon
     
  • U-boot provides a mean to define default values for mtdids and mtdparts
    when they're not defined in the environment. Patch mtd_probe_devices()
    to use those default values when env_get("mtdparts") or
    env_get("mtdids") return NULL.

    This implementation is based on the logic found in cmd/mtdparts.c.

    Fixes: 5db66b3aee6f ("cmd: mtd: add 'mtd' command")
    Reported-by: Stefan Roese
    Signed-off-by: Boris Brezillon
    Tested-by: Stefan Roese
    Reviewed-by: Lukasz Majewski
    Reviewed-by: Jagan Teki

    Boris Brezillon
     

12 Nov, 2018

5 commits


10 Nov, 2018

2 commits

  • This patch adds check for command response CRC failure. The driver
    is currently ignoring CRC check failure on command resposes which
    have CRC atteched to it, which can be potentially dangerous. Even
    more grueling problem happens when the command response is followed
    by data transfer though, as in that case, the dwmci_data_transfer()
    function will spin until it reaches the 240s timeout.

    Signed-off-by: Marek Vasut
    Cc: Heiko Stuebner
    Cc: Philipp Tomsich

    Marek Vasut
     
  • Build ymodem only on need to shrink spl image size.

    Signed-off-by: Jun Nie

    Jun Nie
     

09 Nov, 2018

5 commits


08 Nov, 2018

4 commits


07 Nov, 2018

4 commits


06 Nov, 2018

8 commits