Browse Source

[sdio] Fixed error for dma size calculation.

weety 6 years ago
parent
commit
02a2b78943
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/drivers/sdio/block_dev.c

+ 1 - 1
components/drivers/sdio/block_dev.c

@@ -394,7 +394,7 @@ rt_int32_t rt_mmcsd_blk_probe(struct rt_mmcsd_card *card)
                 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_blk_count * 
                                              card->host->max_blk_size) >> 9);