RE: [RESENT PATCH v3 2/5] mmc-utils: Add FFU mode 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> +       } 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





[Index of Archives]     [Linux Memonry Technology]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux