[U-Boot] [PATCH v2 10/12] dfu:mmc: raw data write fix

Marek Vasut marex at denx.de
Sat Feb 22 06:09:45 CET 2014


On Tuesday, February 04, 2014 at 06:02:42 PM, Mateusz Zalega wrote:
> When user attempted to perform a raw write using DFU (vide
> dfu_fill_entity_mmc) with MMC interface not initialized before,
> get_mmc_blk_size() reported invalid (zero) block size - it wasn't
> possible to write ie. a new u-boot image.
> 
> This commit fixes that by initializing device in get_mmc_blk_size() when
> needed.

This patch certainly does more than that I think, no ?

Moreover, it's up to the user to init the MMC before using it, don't you agree?

Best regards,
Marek Vasut


More information about the U-Boot mailing list