linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers
@ 2019-03-01 16:43 Christoph Muellner
  2019-03-01 16:43 ` [PATCH 2/3] dt-bindings: mmc: Add a new property disable-cqe-dcmd Christoph Muellner
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Christoph Muellner @ 2019-03-01 16:43 UTC (permalink / raw)
  To: robh+dt, mark.rutland, heiko, shawn.lin, ulf.hansson, adrian.hunter
  Cc: Christoph Muellner, Philipp Tomsich, Michal Simek,
	Douglas Anderson, Enric Balletbo i Serra, Viresh Kumar,
	Jeffy Chen, Shunqian Zheng, Ezequiel Garcia, Randy Li, Tony Xie,
	Vicente Bergas, Klaus Goger, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel, linux-rockchip

Direct commands (DCMDs) are an optional feature of eMMC 5.1's command
queue engine (CQE). The Arasan eMMC 5.1 controller uses the CQHCI,
which exposes a control register bit to enable the feature.
The current implementation sets this bit unconditionally.

This patch allows to surpress the feature activation,
by specifying the property disable-cqe-dcmd.

Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
---
 drivers/mmc/host/sdhci-of-arasan.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c
index c9e3e050ccc8..88dc3f00a5be 100644
--- a/drivers/mmc/host/sdhci-of-arasan.c
+++ b/drivers/mmc/host/sdhci-of-arasan.c
@@ -832,7 +832,10 @@ static int sdhci_arasan_probe(struct platform_device *pdev)
 		host->mmc_host_ops.start_signal_voltage_switch =
 					sdhci_arasan_voltage_switch;
 		sdhci_arasan->has_cqe = true;
-		host->mmc->caps2 |= MMC_CAP2_CQE | MMC_CAP2_CQE_DCMD;
+		host->mmc->caps2 |= MMC_CAP2_CQE;
+
+		if (!of_property_read_bool(np, "disable-cqe-dcmd"))
+			host->mmc->caps2 |= MMC_CAP2_CQE_DCMD;
 	}
 
 	ret = sdhci_arasan_add_host(sdhci_arasan);
-- 
2.11.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-03-02  8:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-01 16:43 [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers Christoph Muellner
2019-03-01 16:43 ` [PATCH 2/3] dt-bindings: mmc: Add a new property disable-cqe-dcmd Christoph Muellner
2019-03-01 16:45   ` Philipp Tomsich
2019-03-01 16:43 ` [PATCH 3/3] arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller Christoph Muellner
2019-03-02  0:47   ` [PATCH 3/3] arm64: dts: rockchip: Disable DCMDs on RK3399's eMMC controller.【请注意,邮件由linux-mmc-owner@vger.kernel.org代发】 Shawn Lin
2019-03-02  8:26     ` Christoph Müllner
2019-03-01 18:17 ` [PATCH 1/3] dt-bindings: mmc: Add DTS property to disable DCMDs on Arasan controllers Heiko Stuebner
2019-03-01 18:19   ` Christoph Müllner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).