]> git.hungrycats.org Git - linux/commitdiff
[MMC] Give the MMC host the full-sized request.
authorRussell King <rmk@flint.arm.linux.org.uk>
Mon, 30 Aug 2004 11:58:22 +0000 (12:58 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Mon, 30 Aug 2004 11:58:22 +0000 (12:58 +0100)
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.

drivers/mmc/mmc_block.c

index 423d9cb9055ec3bc1e99dfcb84e4a41295b52a97..281995925c25b5866a2779b48c9ae8ef4c839218 100644 (file)
@@ -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;