
21 Aug
2013
21 Aug
'13
1:04 p.m.
On 08/21/13 13:00, 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.
Tested on Samsung Goni.
Signed-off-by: Mateusz Zalega m.zalega@samsung.com Signed-off-by: Kyungmin Park kyungmin.park@samsung.com Reviewed-by: Lukasz Majewski l.majewski@samsung.com Cc: Minkyu Kang mk7.kang@samsung.com
Changes for v2:
- code cleanup
- minor dfu_alt_info format change
Changes depend on "[PATCH RESEND v3] arm:goni: Update GONI configuration".
--
Mateusz Zalega
Samsung R&D Institute Poland