07 Oct, 2014

2 commits

  • Without NULL termination, various commands will read past the
    end of input. In particular, this was noticed with error()
    calls in cb_getvar and simple_strtoul() in cb_download.

    Since the download callback happens elsewhere, the 4k buffer
    should always be sufficient to handle command arguments.

    Signed-off-by: Eric Nelson

    Eric Nelson
     
  • This bit allows the MUSB controller to negotiate for high-speed mode when
    the device is reset by the hub. If unset, Babble errors occur with
    high-speed mass storage devices right after the first packet. This condition
    is not caught by the interrupt handles in U-Boot, so no recovery is done,
    and the USB communication is stuck.

    To fix this, set the bit unconditionally, not only for
    CONFIG_USB_GADGET_DUALSPEED but also for host-only modes.

    Signed-off-by: Daniel Mack

    Daniel Mack
     

06 Oct, 2014

19 commits


03 Oct, 2014

8 commits

  • dw_mmc driver was responding to errors with debug(). Change that to
    prinf so that any errors are immediately obvious. Also adjust english
    in comments.

    Signed-off-by: Pavel Machek
    Acked-by: Pantelis Antoniou

    Pavel Machek
     
  • sub-command 'bootpart-resize' check for argc == 4,
    it will retrun CMD_RET_FAILURE when argc value not matched.

    but bootpart-resize's maxarg is 3, which means you never execute
    this sub-command successfully.

    fix it by change bootpart-resize maxarg to 4.

    Signed-off-by: wally.yeh
    Cc: Wolfgang Denk
    Cc: Pierre Aubert
    Acked-by: Pantelis Antoniou

    Wally Yeh
     
  • After setting the bus width, the extended CSD register is read. Some selected
    fields are compared with previously read extended CSD register fields. In this
    comparison the EXT_CSD_ERASE_GROUP_DEF field is compared. But this field is
    previously written under certain circumstances. And then the comparison fails.

    Only compare read-only fields. Therefore compare field EXT_CSD_HC_WP_GRP_SIZE
    instead of field EXT_CSD_ERASE_GROUP_DEF.

    Signed-off-by: Mario Schuknecht
    Acked-by: Pantelis Antoniou

    Mario Schuknecht
     
  • In function mvebu_mmc_write notice command timeout. It is possible that a
    command is done, but a timeout occurred.

    Enable timeout in set bus function.

    Set window registers. Without that I could not use the driver on a Kirkwood
    88F6282 SoC.

    Set high capacity and 52MHz driver feature.

    Signed-off-by: Mario Schuknecht
    Reviewed-by: Stefan Roese
    Acked-by: Pantelis Antoniou

    Mario Schuknecht
     
  • The code to set the MMC partition uses an weak function to obtain the
    correct partition number. Use that instead of the compile-time default
    when deciding whether it needs to switch back.

    Fixes: 6e7b7df4df43574 ("env_mmc: support env partition setup in runtime")
    Signed-off-by: Peter A. Bigot
    Acked-by: Dmitry Lifshitz
    Acked-by: Pantelis Antoniou

    Peter Bigot
     
  • The capacity and lba for an MMC device with part_num 0 reflects the
    whole device. When mmc_switch_part() successfully switches to a
    partition, the capacity is changed to that partition. As partition 0
    does not physically exist, attempts to switch back to the whole device
    will indicate an error, but the capacity setting for the whole device
    must still be restored to match the partition.

    Signed-off-by: Peter A. Bigot
    Tested-by: Tom Rini
    Acked-by: Pantelis Antoniou

    Peter Bigot
     
  • if we set manually this bit on the eMMC card using mmc_switch(...),
    we also have to set it within our (before read) internal structure
    'ext_csd'.

    Otherwise following checks on this will fail.

    Acked-by: Pantelis Antoniou
    Signed-off-by: Hannes Petermaier

    Hannes Petermaier
     
  • Wait data transfer till the data end bit other than the data block end
    bit is set.

    Acked-by: Pantelis Antoniou
    Signed-off-by: Sonic Zhang

    Sonic Zhang
     

27 Sep, 2014

5 commits


26 Sep, 2014

6 commits