diff mbox series

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

Message ID 20200220044534.19600-2-jh80.chung@samsung.com
State New
Headers show
Series Remove CONFIG_MMC_BROKEN_CD | expand

Commit Message

Jaehoon Chung Feb. 20, 2020, 4:45 a.m. UTC
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 mbox series

Patch

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) {