mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-18 22:52:17 +08:00
[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…
x
Reference in New Issue
Block a user