> + } else if (ffu_mode == 2) { > + set_single_cmd(&multi_cmd->cmds[0], MMC_SET_BLOCK_COUNT, > 0, 0, bytes / 512); > + multi_cmd->cmds[0].flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | > MMC_CMD_AC; > + set_single_cmd(&multi_cmd->cmds[1], > MMC_WRITE_MULTIPLE_BLOCK, 1, bytes / 512, arg); > + mmc_ioc_cmd_set_data(multi_cmd->cmds[1], buf + offset); > + } > +} Actually, I was hoping to avoid the "ffu_mode" extra argument. So that each do_ffu<x> has its own fluf encapsulation logic. Thanks, Avri