From 0416f42244019e7f6fef7f38936191aa321d9f23 Mon Sep 17 00:00:00 2001 From: Russell King Date: Mon, 30 Aug 2004 12:58:22 +0100 Subject: [PATCH] [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. --- drivers/mmc/mmc_block.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/mmc_block.c b/drivers/mmc/mmc_block.c index 423d9cb9055ec..281995925c25b 100644 --- a/drivers/mmc/mmc_block.c +++ b/drivers/mmc/mmc_block.c @@ -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; -- 2.53.0