[PATCH 1/3] mmc: jz_mmc; add MMC_CAP_NEEDS_POLL by default

Jaehoon Chung jh80.chung at samsung.com
Thu Feb 20 05:45:32 CET 2020


Add MMC_CAP_NEEDS_POLL by default.

Signed-off-by: Jaehoon Chung <jh80.chung at samsung.com>
---
 drivers/mmc/jz_mmc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c
index 8d4f886cb4..df995bda2f 100644
--- a/drivers/mmc/jz_mmc.c
+++ b/drivers/mmc/jz_mmc.c
@@ -395,7 +395,8 @@ static struct jz_mmc_plat jz_mmc_plat_static = {
 		.voltages = MMC_VDD_27_28 | MMC_VDD_28_29 | MMC_VDD_29_30 |
 			    MMC_VDD_30_31 | MMC_VDD_31_32 | MMC_VDD_32_33 |
 			    MMC_VDD_33_34 | MMC_VDD_34_35 | MMC_VDD_35_36,
-		.host_caps = MMC_MODE_4BIT | MMC_MODE_HS_52MHz | MMC_MODE_HS,
+		.host_caps = MMC_MODE_4BIT | MMC_MODE_HS_52MHz | MMC_MODE_HS |
+			MMC_CAP_NEEDS_POLL,
 
 		.f_min = 375000,
 		.f_max = 48000000,
@@ -452,7 +453,8 @@ static int jz_mmc_ofdata_to_platdata(struct udevice *dev)
 	cfg = &plat->cfg;
 
 	cfg->name = "MSC";
-	cfg->host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS;
+	cfg->host_caps = MMC_MODE_HS_52MHz | MMC_MODE_HS |
+		MMC_CAP_NEEDS_POLL;
 
 	ret = mmc_of_parse(dev, cfg);
 	if (ret < 0) {
-- 
2.25.0



More information about the U-Boot mailing list