Commit 0416f422 authored by Russell King's avatar Russell King

[MMC] Give the MMC host the full-sized request.

Pass the total number of MMC data blocks in the request to the
host driver.  Since existing MMC host drivers do not support
scatter-gather at present, the block queue defaults have been
chosen to prevent scatter-gather block requests for MMC.  A
host can alter these parameters when it wishes to take advantage
of SG capabilities.
parent a7d15860
......@@ -184,7 +184,7 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
brq.data.timeout_ns = card->csd.tacc_ns * 10;
brq.data.timeout_clks = card->csd.tacc_clks * 10;
brq.data.blksz_bits = md->block_bits;
brq.data.blocks = req->current_nr_sectors >> (md->block_bits - 9);
brq.data.blocks = req->nr_sectors >> (md->block_bits - 9);
brq.stop.opcode = MMC_STOP_TRANSMISSION;
brq.stop.arg = 0;
brq.stop.flags = MMC_RSP_SHORT | MMC_RSP_CRC | MMC_RSP_BUSY;
......
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