Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5889889imb; Fri, 8 Mar 2019 04:51:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyriKZ5rVO9hq2PngeepozEQk3+dMO+GsykDiHbcgjOLcMX46kYYLtBe4KjzCk6t5VB3IPV X-Received: by 2002:a63:fb16:: with SMTP id o22mr16179404pgh.209.1552049472809; Fri, 08 Mar 2019 04:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552049472; cv=none; d=google.com; s=arc-20160816; b=tGpekcDZk2BnUt6Wr7Cv1Qi9gXlVKiPWxhH3GvbkhvNp5eHjpgWz1wSpgTEFpbkWIq 4Ld+e/YN3RcKmhuYJ7mvJA4BMh12Faa0E0paaFxDnEPf2fViQ7ZPg6rqTz2GMpXD1Jup wYqLueTdiaIvdqJwecj/st+cLSS7QWzsHWjtOdxF2xxgJMnAtnwsYz/L7ZH0pC2yEDPl khuGbKCTW2zd9S4/+VaweZoiGo0QY+M1FsbfXN8wNkreQW6pcxT/7Q47NThH1lDHoaUk r0ZMQ89M8XFtjR18NwbhSZSeWvu2vjFgovYMoyoqHcG4vxcGiSSp6t11m6j+X7U0Hb4k vVvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=pLyxiE8OpM1Xzk9sBnmZzWcfQ5Uy9pFUUQaP1shOzVw=; b=EnCtL4kcv4G9xTf73Mvbs8QqRUunZL1gNJ63gQENo8v2xFJbiuW3V8AxeXM8g6QPvF PEovCTYd6qGc82cCnpohJEZiYqQ6OQ6rUcPOYiHWmpu92iM4mHUBpyp4WAGqwWcQbxID PtjyS/rsAHZagfEFu9BOJPXAsEStDnaiE0LvcpuatIHELAhDyLlfi3j0tO8m8HTHyuyi wzHc9rYpdrFwp0fKJ1gHuC0mJQBxIgriIxo+4BPB3R/8D6dnvSbRwPl6hrP6ShBrRoXt Jzg7C3fPVcDKGAQMdsXTBi+LcVefiIGqWE70t4lz7oAzkhmy7HRKfKu6x3LEr7a+NFOk iYOg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x14si6632275plr.259.2019.03.08.04.50.56; Fri, 08 Mar 2019 04:51:12 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726639AbfCHMs6 (ORCPT + 99 others); Fri, 8 Mar 2019 07:48:58 -0500 Received: from mga07.intel.com ([134.134.136.100]:4733 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726298AbfCHMs6 (ORCPT ); Fri, 8 Mar 2019 07:48:58 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Mar 2019 04:48:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,455,1544515200"; d="scan'208";a="129923647" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.56]) ([10.237.72.56]) by fmsmga008.fm.intel.com with ESMTP; 08 Mar 2019 04:48:52 -0800 Subject: Re: [PATCH v2 1/3] mmc: sdhci-of-arasan: Add DTS property to disable DCMDs. To: Christoph Muellner , robh+dt@kernel.org, mark.rutland@arm.com, heiko@sntech.de, shawn.lin@rock-chips.com, ulf.hansson@linaro.org Cc: Philipp Tomsich , Michal Simek , Douglas Anderson , Enric Balletbo i Serra , Viresh Kumar , Emil Renner Berthing , Lin Huang , 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 References: <20190307084329.25416-1-christoph.muellner@theobroma-systems.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <9136f429-251a-87d3-8d6e-bf07c6882c8a@intel.com> Date: Fri, 8 Mar 2019 14:47:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190307084329.25416-1-christoph.muellner@theobroma-systems.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/03/19 10:43 AM, Christoph Muellner wrote: > 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); >