From: David Lechner Date: Mon, 15 Jun 2026 19:23:31 +0000 (-0500) Subject: mmc: mtk-sd: select LMB_LIMIT_DMA_BELOW_RAM_TOP X-Git-Tag: v2026.07~13^2~7 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=ae73cc6df7246b80ebc3c602da952e13fa72f2f7;p=thirdparty%2Fu-boot.git mmc: mtk-sd: select LMB_LIMIT_DMA_BELOW_RAM_TOP Default to CONFIG_LMB_LIMIT_DMA_BELOW_RAM_TOP=y when CONFIG_MTK_SD is enabled. The MediaTek SD controller can only access the first 4GB of RAM when DMA is used. "imply" is used rather than "select" in case someone want's to turn off the option when DMA is not used. Link: https://patch.msgid.link/20260615-mtk-fix-ram-size-v2-1-f72cfc52ce58@baylibre.com Signed-off-by: David Lechner --- diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index 24bd16ad5f3..6c513328de2 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig @@ -858,6 +858,7 @@ config MMC_MTK bool "MediaTek SD/MMC Card Interface support" depends on ARCH_MEDIATEK || ARCH_MTMIPS || ARCH_AIROHA depends on OF_CONTROL + imply LMB_LIMIT_DMA_BELOW_RAM_TOP help This selects the MediaTek(R) Secure digital and Multimedia card Interface. If you have a machine with a integrated SD/MMC card reader, say Y here.