MAINLINE dfu: mmc: Replace calls to u-boot commands with native mmc API
authorLukasz Majewski <l.majewski@samsung.com>
Tue, 18 Feb 2014 14:37:27 +0000 (15:37 +0100)
committerPrzemyslaw Marczak <p.marczak@samsung.com>
Fri, 7 Mar 2014 08:58:57 +0000 (09:58 +0100)
commita2b0846d217a41ab2f6b0cdd094b05e1d922c032
tree929cd9b4aee95bc30d6885c99542be5f23a88029
parenta93412709418c198cfbb13c902f6efac33e4ba70
MAINLINE dfu: mmc: Replace calls to u-boot commands with native mmc API

For some time we have been using the run_command() with properly crafted
string. Such approach turned to be unreliable and error prone.

Switch to "native" mmc subsystem API would allow better type checking and
shall improve speed.

Also, it seems that this API is changing less often than u-boot commands.
The approach similar to env operations on the eMMC has been reused.

Change-Id: Idcd18465f58481bcbae9e266769fb9b9355852d2
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/dfu/dfu_mmc.c