@@ -551,6 +551,7 @@ int mmc_send_tuning(struct mmc_host *host)
{
struct mmc_request mrq = {NULL};
struct mmc_command cmd = {0};
+ struct mmc_command stop = {0};
struct mmc_data data = {0};
struct scatterlist sg;
struct mmc_ios *ios = &host->ios;
@@ -576,10 +577,14 @@ int mmc_send_tuning(struct mmc_host *host)
mrq.cmd = &cmd;
mrq.data = &data;
+ mrq.stop = &stop;
cmd.opcode = opcode;
cmd.flags = MMC_RSP_R1 | MMC_CMD_ADTC;
+ stop.opcode = MMC_STOP_TRANSMISSION;
+ stop.flags = MMC_RSP_R1B | MMC_CMD_AC;
+
data.blksz = size;
data.blocks = 1;
data.flags = MMC_DATA_READ;