mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[MMC] Add DATA_MULTI flag
Some hosts need to know that a transfer will be multi-block. Add a data flag to indicate multiple data block transfers. Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
cfa7f52164
commit
788ee7b098
2 changed files with 8 additions and 1 deletions
|
|
@ -200,7 +200,13 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
|
|||
brq.data.flags |= MMC_DATA_WRITE;
|
||||
brq.data.blocks = 1;
|
||||
}
|
||||
brq.mrq.stop = brq.data.blocks > 1 ? &brq.stop : NULL;
|
||||
|
||||
if (brq.data.blocks > 1) {
|
||||
brq.data.flags |= MMC_DATA_MULTI;
|
||||
brq.mrq.stop = &brq.stop;
|
||||
} else {
|
||||
brq.mrq.stop = NULL;
|
||||
}
|
||||
|
||||
brq.data.sg = mq->sg;
|
||||
brq.data.sg_len = blk_rq_map_sg(req->q, req, brq.data.sg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue