Files
u-boot-tk1-som/include
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
..
2014-03-04 12:15:29 -05:00
2014-04-17 14:38:30 -04:00
2014-02-04 16:32:20 +01:00
2014-04-20 13:16:43 +02:00
2014-02-21 08:42:47 -05:00
2014-03-17 20:05:48 -06:00
2014-05-05 08:00:28 +02:00
2014-03-04 12:15:29 -05:00
2014-02-19 09:47:34 -05:00
2014-02-19 09:47:34 -05:00
2014-03-21 16:39:36 -04:00
2014-02-20 06:48:23 +01:00
2013-09-24 09:10:33 -04:00
2014-03-17 20:05:49 -06:00
2014-02-19 11:10:04 -05:00
2013-09-20 10:30:54 -04:00
2014-05-05 08:00:28 +02:00
2013-11-09 17:21:01 +01:00
2014-04-20 13:16:43 +02:00
2014-03-17 20:05:49 -06:00
2014-05-05 08:00:28 +02:00
2013-11-09 17:21:01 +01:00
2014-03-05 12:23:48 +01:00
2014-03-21 16:39:35 -04:00
2014-02-19 10:47:43 -05:00
2013-12-04 08:11:28 -05:00
2013-08-28 11:44:59 -04:00