Write only single block at a time while doing write
operations mmc/SD/eMMC
This is workaround for an issue with multiple block write
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
do {
cur = (blocks_todo > mmc->cfg->b_max) ?
mmc->cfg->b_max : blocks_todo;
+ /*
+ * FIXME: Workaround to always use
+ * single block write instead of
+ * multiple block.
+ */
+ cur = 1;
if (mmc_write_blocks(mmc, start, cur, src) != cur)
return 0;
blocks_todo -= cur;