diff mbox series

[v5,1/5] mmc: core: Extend mmc_of_parse() to parse CQE bindings

Message ID 1588031768-23677-2-git-send-email-chun-hung.wu@mediatek.com
State Superseded
Headers show
Series [v5,1/5] mmc: core: Extend mmc_of_parse() to parse CQE bindings | expand

Commit Message

Chun-Hung Wu (巫駿宏) April 27, 2020, 11:56 p.m. UTC
Parse CQE bindings "supports-cqe" and "disable-cqe-dcmd"
in mmc_of_parse().

Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>

---
 drivers/mmc/core/host.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
2.6.4
diff mbox series

Patch

diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index c876872..47521c6 100644
--- a/drivers/mmc/core/host.c
+++ b/drivers/mmc/core/host.c
@@ -302,6 +302,11 @@  int mmc_of_parse(struct mmc_host *host)
 		host->caps2 |= MMC_CAP2_NO_SD;
 	if (device_property_read_bool(dev, "no-mmc"))
 		host->caps2 |= MMC_CAP2_NO_MMC;
+	if (device_property_read_bool(dev, "supports-cqe"))
+		host->caps2 |= MMC_CAP2_CQE;
+	if (!device_property_read_bool(dev, "disable-cqe-dcmd")) {
+		host->caps2 |= MMC_CAP2_CQE_DCMD;
+	}
 
 	/* Must be after "non-removable" check */
 	if (device_property_read_u32(dev, "fixed-emmc-driver-type", &drv_type) == 0) {