[sdio] Fixed error for dma size calculation.
This commit is contained in:
parent
618e185cd3
commit
02a2b78943
|
@ -394,7 +394,7 @@ rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
blk_dev->max_req_size = BLK_MIN((card->host->max_seg_size *
|
blk_dev->max_req_size = BLK_MIN((card->host->max_dma_segs *
|
||||||
card->host->max_seg_size) >> 9,
|
card->host->max_seg_size) >> 9,
|
||||||
(card->host->max_blk_count *
|
(card->host->max_blk_count *
|
||||||
card->host->max_blk_size) >> 9);
|
card->host->max_blk_size) >> 9);
|
||||||
|
|
Loading…
Reference in New Issue