Commit f53f1102 authored by Jaehoon Chung's avatar Jaehoon Chung Committed by Ulf Hansson

mmc: block: don't use the OR operation for flag of data

After removed the MMC_DATA_STREAM, only two flags are remained.
(MMC_DATA_READ and MMC_DATA_WRITE)
The flags of  READ and WRITE can't be used together.
That's why it doesn't need to use "OR' operation.
Signed-off-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent d3204ab9
...@@ -1524,13 +1524,13 @@ static void mmc_blk_rw_rq_prep(struct mmc_queue_req *mqrq, ...@@ -1524,13 +1524,13 @@ static void mmc_blk_rw_rq_prep(struct mmc_queue_req *mqrq,
} }
if (rq_data_dir(req) == READ) { if (rq_data_dir(req) == READ) {
brq->cmd.opcode = readcmd; brq->cmd.opcode = readcmd;
brq->data.flags |= MMC_DATA_READ; brq->data.flags = MMC_DATA_READ;
if (brq->mrq.stop) if (brq->mrq.stop)
brq->stop.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 | brq->stop.flags = MMC_RSP_SPI_R1 | MMC_RSP_R1 |
MMC_CMD_AC; MMC_CMD_AC;
} else { } else {
brq->cmd.opcode = writecmd; brq->cmd.opcode = writecmd;
brq->data.flags |= MMC_DATA_WRITE; brq->data.flags = MMC_DATA_WRITE;
if (brq->mrq.stop) if (brq->mrq.stop)
brq->stop.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | brq->stop.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B |
MMC_CMD_AC; MMC_CMD_AC;
...@@ -1799,7 +1799,7 @@ static void mmc_blk_packed_hdr_wrq_prep(struct mmc_queue_req *mqrq, ...@@ -1799,7 +1799,7 @@ static void mmc_blk_packed_hdr_wrq_prep(struct mmc_queue_req *mqrq,
brq->data.blksz = 512; brq->data.blksz = 512;
brq->data.blocks = packed->blocks + hdr_blocks; brq->data.blocks = packed->blocks + hdr_blocks;
brq->data.flags |= MMC_DATA_WRITE; brq->data.flags = MMC_DATA_WRITE;
brq->stop.opcode = MMC_STOP_TRANSMISSION; brq->stop.opcode = MMC_STOP_TRANSMISSION;
brq->stop.arg = 0; brq->stop.arg = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment