diff options
| author | Mateusz Zalega <[email protected]> | 2014-04-28 21:13:24 +0200 |
|---|---|---|
| committer | Lukasz Majewski <[email protected]> | 2014-05-05 08:00:28 +0200 |
| commit | 711b931f90e44ff1248cd73c15f64485470d86ff (patch) | |
| tree | ba210677e3fa0c50a74a357a997931530a4e12db /scripts/objdiff | |
| parent | 75504e9592745021006cb8905b5ff5a51d9d1cb3 (diff) | |
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 <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Acked-by: Lukasz Majewski <[email protected]>
Acked-by: Tom Rini <[email protected]>
Cc: Minkyu Kang <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
