2024-10-29 05:12:06 +03:00
|
|
|
From ae6a452692f8b02115019b0b62ac82ae2c432f59 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Aurelien Jarno <aurelien@aurel32.net>
|
|
|
|
Date: Wed, 23 Oct 2024 21:28:33 +0200
|
|
|
|
Subject: [PATCH] Revert "mmc: dw_mmc: Fix IDMAC operation with pages bigger
|
|
|
|
than 4K"
|
|
|
|
|
|
|
|
This reverts commit 8396c793ffdf28bb8aee7cfe0891080f8cab7890.
|
|
|
|
---
|
|
|
|
drivers/mmc/host/dw_mmc.c | 4 ++--
|
|
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/mmc/host/dw_mmc.c
|
|
|
|
+++ b/drivers/mmc/host/dw_mmc.c
|
2024-10-29 05:12:06 +03:00
|
|
|
@@ -2957,8 +2957,8 @@ static int dw_mci_init_slot(struct dw_mc
|
2024-10-29 05:12:06 +03:00
|
|
|
if (host->use_dma == TRANS_MODE_IDMAC) {
|
|
|
|
mmc->max_segs = host->ring_size;
|
|
|
|
mmc->max_blk_size = 65535;
|
|
|
|
- mmc->max_req_size = DW_MCI_DESC_DATA_LENGTH * host->ring_size;
|
|
|
|
- mmc->max_seg_size = mmc->max_req_size;
|
|
|
|
+ mmc->max_seg_size = 0x1000;
|
|
|
|
+ mmc->max_req_size = mmc->max_seg_size * host->ring_size;
|
|
|
|
mmc->max_blk_count = mmc->max_req_size / 512;
|
|
|
|
} else if (host->use_dma == TRANS_MODE_EDMAC) {
|
|
|
|
mmc->max_segs = 64;
|