|
@@ -2332,9 +2332,9 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
|
|
#ifdef CONFIG_MMC_DW_IDMAC
|
|
#ifdef CONFIG_MMC_DW_IDMAC
|
|
mmc->max_segs = host->ring_size;
|
|
mmc->max_segs = host->ring_size;
|
|
mmc->max_blk_size = 65536;
|
|
mmc->max_blk_size = 65536;
|
|
- mmc->max_blk_count = host->ring_size;
|
|
|
|
mmc->max_seg_size = 0x1000;
|
|
mmc->max_seg_size = 0x1000;
|
|
- mmc->max_req_size = mmc->max_seg_size * mmc->max_blk_count;
|
|
|
|
|
|
+ mmc->max_req_size = mmc->max_seg_size * host->ring_size;
|
|
|
|
+ mmc->max_blk_count = mmc->max_req_size / 512;
|
|
#else
|
|
#else
|
|
mmc->max_segs = 64;
|
|
mmc->max_segs = 64;
|
|
mmc->max_blk_size = 65536; /* BLKSIZ is 16 bits */
|
|
mmc->max_blk_size = 65536; /* BLKSIZ is 16 bits */
|