u-boot/drivers/dfu
Mateusz Zalega 711b931f90 dfu: mmc: raw data write fix
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 MMC device before use in
dfu_fill_entity_mmc().

While fixing initialization sequence, I had to change about half of
dfu_fill_entity_mmc's body, so I refactored it on the way to make it,
IMHO, considerably more comprehensible.

Being left as dead code, get_mmc_blk_size() was removed.

Tested on Samsung Goni.

Signed-off-by: Mateusz Zalega <m.zalega@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Tom Rini <trini@ti.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
2014-05-05 08:00:28 +02:00
..
dfu.c dfu:fix: Replace wrong return value with proper one 2014-04-30 10:30:57 +02:00
dfu_mmc.c dfu: mmc: raw data write fix 2014-05-05 08:00:28 +02:00
dfu_nand.c usb: dfu: make nand upload working 2013-11-08 20:46:20 +01:00
dfu_ram.c dfu: ram support 2013-09-24 17:51:35 +02:00
Makefile drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00