Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp590518img; Fri, 22 Mar 2019 04:41:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUqAw3dwWX7Nfoy0Is3v8A/fgUsAf6eVopv76lkTzIpRpjERJLYvUq8o5xlZTQYAnC/MXj X-Received: by 2002:a62:449b:: with SMTP id m27mr8771592pfi.79.1553254901872; Fri, 22 Mar 2019 04:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553254901; cv=none; d=google.com; s=arc-20160816; b=rxQDp1y8viLP75LBWltsVQXs40R/pVtV/mim3fdZb9zD8hJMZU/XNxL/5fdWKrnf3w SGiV4TqdSaB0VankWQa9PkJjv2+1B3ggTODa/oTZZfoqq0poXotDWHzkb9W9G703ZK13 AHtQGZ1zNVgEjrEtOHHHdG0noZNDS4pgchpIIOo8O86VhIyJkFrsgQA1EnrO97ohULZU 9aBR83sd33PSuQ/5LGzKAxyscEJ71beAPWGv6Bwnqf40Psu/1ty8vS4Q34shGyVsKokS LUZH3lDzzVCCe0HtKhPc1rbUbnXVsyIE5USgLqEk5HzN+9Fu8oDyucerT5TevpHfP71u HCjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=iS6gg6rAqdlUBAiCz/JCtB/IPSkV3r4CGdCMajp4UhA=; b=jZUAqmru66Mvb0uIf1dZcHcG5Kae/+jvL4WyGF+deUBcP3vrl/CbFI4a0uh7cUrxLq W171ns0qGF7Hu8QEtltzUcmJ+rLDJGp72gRXuiltlHp8ZPcEaT5RjjLa3YiIXFX5IeY4 bxKuOkFkbEo4WO02xPzabx2JTuZ6rQhXHCiIPu0qSCSGwfmxiyGP+GwDeelMkTQ+QwIa FQ2FMPWrYsoTn1wxCxqdAUOCE5RhJs5R5IFCbPmBAzfEv60rA8cRvXvjq2gY1YdONfWL jeRSX3hBlXEMFaAwIIpzOBRDp/6aZmrfA2PEFxIAD4WiI2QoQpbBAfRWp6D9wpoWYwM5 9e/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si7150646pls.161.2019.03.22.04.41.24; Fri, 22 Mar 2019 04:41:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730349AbfCVLjV (ORCPT + 99 others); Fri, 22 Mar 2019 07:39:21 -0400 Received: from vegas.theobroma-systems.com ([144.76.126.164]:37950 "EHLO mail.theobroma-systems.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731092AbfCVLjS (ORCPT ); Fri, 22 Mar 2019 07:39:18 -0400 Received: from ip092042140082.rev.nessus.at ([92.42.140.82]:55278 helo=purcell.lan) by mail.theobroma-systems.com with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1h7IVm-0006yM-6O; Fri, 22 Mar 2019 12:38:58 +0100 From: Christoph Muellner To: robh+dt@kernel.org, mark.rutland@arm.com, heiko@sntech.de, shawn.lin@rock-chips.com, ulf.hansson@linaro.org, adrian.hunter@intel.com Cc: Christoph Muellner , Philipp Tomsich , Michal Simek , Viresh Kumar , Enric Balletbo i Serra , Matthias Brugger , Douglas Anderson , Tony Xie , Randy Li , Vicente Bergas , Ezequiel Garcia , Klaus Goger , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH v3 2/3] mmc: sdhci-of-arasan: Add DTS property to disable DCMDs. Date: Fri, 22 Mar 2019 12:38:05 +0100 Message-Id: <20190322113808.16858-2-christoph.muellner@theobroma-systems.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190322113808.16858-1-christoph.muellner@theobroma-systems.com> References: <20190322113808.16858-1-christoph.muellner@theobroma-systems.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 suppress the feature activation, by specifying the property disable-cqe-dcmd. Signed-off-by: Christoph Muellner Signed-off-by: Philipp Tomsich Acked-by: Adrian Hunter --- 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