Skip to contentSkip to conversation

mmc: sdhci-of-dwcmshc: fix DMA 128MB boundary

PATCH In review [email protected] 3 participants 3 messages Jan 14 – Jan 22

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sdhci-of-dwcmshc: fix DMA 128MB boundary

From: Huan He <[email protected]>

This DWC MSHC has a 128MB limitation where the data buffer size and start address must not exceed the 128MB boundary. Registering the missing 'adma_write_desc' callback function.

---
 drivers/mmc/host/sdhci-of-dwcmshc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci-of-dwcmshc.c +1 -0
index 51949cde0958..cabb709a8108 100644
@@ -1726,6 +1726,7 @@ static const struct sdhci_ops sdhci_dwcmshc_eic7700_ops = {
 	.set_uhs_signaling = sdhci_eic7700_set_uhs_wrapper,
 	.set_power = sdhci_set_power_and_bus_voltage,
 	.irq = dwcmshc_cqe_irq_handler,
+	.adma_write_desc = dwcmshc_adma_write_desc,
 	.platform_execute_tuning = sdhci_eic7700_executing_tuning,
 };
 
Signature · 1 line
2.25.1
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · On 14/01/2026 14:22, [email protected] wrote:

From: Huan He <[email protected]>

This DWC MSHC has a 128MB limitation where the data buffer size and start address must not exceed the 128MB boundary. Registering the missing 'adma_write_desc' callback function.

Fixes tag?

Nevertheless:

Quoted 16 lines
---
 drivers/mmc/host/sdhci-of-dwcmshc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci-of-dwcmshc.c +1 -0
index 51949cde0958..cabb709a8108 100644
@@ -1726,6 +1726,7 @@ static const struct sdhci_ops sdhci_dwcmshc_eic7700_ops = {
 	.set_uhs_signaling = sdhci_eic7700_set_uhs_wrapper,
 	.set_power = sdhci_set_power_and_bus_voltage,
 	.irq = dwcmshc_cqe_irq_handler,
+	.adma_write_desc = dwcmshc_adma_write_desc,
 	.platform_execute_tuning = sdhci_eic7700_executing_tuning,
 };
 
#2 lore raw
In reply to [email protected]
Quoted 8 lines · On Wed, 14 Jan 2026 at 13:23, <[email protected]> wrote:

From: Huan He <[email protected]>

This DWC MSHC has a 128MB limitation where the data buffer size and start address must not exceed the 128MB boundary. Registering the missing 'adma_write_desc' callback function.

Applied for fixes and by adding a fixes tag, thanks!

Kind regards
Uffe

Quoted 19 lines
---
 drivers/mmc/host/sdhci-of-dwcmshc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mmc/host/sdhci-of-dwcmshc.c +1 -1
index 51949cde0958..cabb709a8108 100644
@@ -1726,6 +1726,7 @@ static const struct sdhci_ops sdhci_dwcmshc_eic7700_ops = {
        .set_uhs_signaling = sdhci_eic7700_set_uhs_wrapper,
        .set_power = sdhci_set_power_and_bus_voltage,
        .irq = dwcmshc_cqe_irq_handler,
+       .adma_write_desc = dwcmshc_adma_write_desc,
        .platform_execute_tuning = sdhci_eic7700_executing_tuning,
 };
 
--

2.25.1