Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3234494img; Mon, 25 Mar 2019 06:29:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6GFph8r8T/yB9WPwXop2mm+xcbMSuSvPA7HKfsJF0Zepc3OZtpM7bD0IHHn6cKM7/nxAX X-Received: by 2002:a63:f80f:: with SMTP id n15mr23360189pgh.283.1553520562650; Mon, 25 Mar 2019 06:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553520562; cv=none; d=google.com; s=arc-20160816; b=a4SxHXPfIm9i5Md6QF48Zk7LkGqRovFGTnFenmFf4PR8F0+6mPqQPxjpx7p4w8B9gV 1jSOTDX705VHY0X5XHGfkVQbpd3tlRpBj+ATFC8Ui/O33zM2HJjTFkon1BjXFB3gZRRq 1wq0myPqOhJMKIATMdVw0VkvEJ1CUmf154XYftKmCRHRjkaU4dsx7TyDN4y7LB1YlGf3 cYw5yAr70SCw0JvostmhcUp9308HgnDoCm3zpj98KPqWEB9YHeR3UpfDDZok9bOnXmVI Z6wY9sj+KTCipcV4wE68KCrPYC+0kuXOagLqzbkGiyJPmWGGgaweyl8CflnO1z87RY8C y6pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=wAUJAYo6dFJMNB+20ayRFyVLng1BOJZiHuvdo7BGGLQ=; b=BPwcmesgr79EZwGvJ277G70xol1gg6EiPOxGjiIjIDgauXRlqdwXWORkjL6enPKJ8/ G54nrY3qpQ67JTXfOQRka8KxLQLU0zbH/PhhQXiltRdOhvIRHiKlFQO69yBJrgMHEjmv HnwazEBBbB3d969LEAb/CJ6pn4Ivstpp+B5G5gakmLPRGrFDM0b2ye4pUE8XtCGGxOfl 1/PVMKTuikWUYCI2RjNWCv74AaZLFDrgyUz+yxwAXLsGJdVRmNASrJpjWWsWatpuo4O8 /WaAkwUe2C/UGXgZ2JeaCtJ9QpKikDxy/GVZq4pcxb0E3amh/dIgcm8xB9kSqj7L38s6 QTsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tmzVAIcH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r15si12879025pgv.389.2019.03.25.06.29.07; Mon, 25 Mar 2019 06:29:22 -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; dkim=pass header.i=@linaro.org header.s=google header.b=tmzVAIcH; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729149AbfCYN15 (ORCPT + 99 others); Mon, 25 Mar 2019 09:27:57 -0400 Received: from mail-vk1-f195.google.com ([209.85.221.195]:45321 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729036AbfCYN14 (ORCPT ); Mon, 25 Mar 2019 09:27:56 -0400 Received: by mail-vk1-f195.google.com with SMTP id v187so1924998vkf.12 for ; Mon, 25 Mar 2019 06:27:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wAUJAYo6dFJMNB+20ayRFyVLng1BOJZiHuvdo7BGGLQ=; b=tmzVAIcHPytLxWUWrRzXCrw/9m8LPYTIGLTYy3KLm3NPPUsT+n81mtl/XIp9OYu+c2 2gq8eZjfyGFoMFW1uNfCKV3KA5tp8MjcpNGRmPURjqRwU7AGFjD5mHJrpyLVpfs+Vhy2 gTtNggcMVUIvpIMV0E9rD0Y4HE3MdLE1NAKjFtz/KLsFeTARrkPxun0fEFiwMK01B2qL gXi0rAJi9m1VjFqpNmqjZIwMq4ilmHNG61kvqpd1MlNBkOiCs0qobcqVhWshZTWDEgBA PE5NMW0XEgoP3Aiq0/I/zMZHfvAwCFz3Pt3+1B1zSgKFFPOf3Y7uIibpnJ0HZq1AzKOk 6EZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wAUJAYo6dFJMNB+20ayRFyVLng1BOJZiHuvdo7BGGLQ=; b=cVDGly5hMcGxbD+wmYGwiEZMER/hcuPsp8wT1QK0vQNVccPHW5G8R9HFUEJM7BI0Ui E16jXIrtec276HaIOKlIbS4D2ugS80wcoyl8Qr9EVW85nuZwBSpgiAOvcqGDhaKMxp+J RKGDA62DigXpndukM2L1gB8e2TD8seYvKcsF6tsYuOZh28xQ0B5y6amrhXgK7HaKTlY2 fBpJ+BL2rs5J2uRsU+yDwk4hA4nAh38flHASRTjsGAt5vDACARvSt9932v677A2IuuGF +qhMpmxX8p4D0xZwqRavDW06nxv20MXofjmupw1uV4TNppLTp5C4aBOvBrFy7mfnL2Rn ZdaQ== X-Gm-Message-State: APjAAAWDC2X651aeFWhjCvOzh5XzIMrVHgTgQzZeDuW+xs2dQ5jnWr0J 1/8nm0av5Fw2BeDdpyKNpbJuqF276dDcQTMTMI4AGQ== X-Received: by 2002:a1f:6b49:: with SMTP id g70mr9924232vkc.17.1553520474854; Mon, 25 Mar 2019 06:27:54 -0700 (PDT) MIME-Version: 1.0 References: <20190322113808.16858-1-christoph.muellner@theobroma-systems.com> <20190322113808.16858-2-christoph.muellner@theobroma-systems.com> In-Reply-To: <20190322113808.16858-2-christoph.muellner@theobroma-systems.com> From: Ulf Hansson Date: Mon, 25 Mar 2019 14:27:18 +0100 Message-ID: Subject: Re: [PATCH v3 2/3] mmc: sdhci-of-arasan: Add DTS property to disable DCMDs. To: Christoph Muellner Cc: Rob Herring , Mark Rutland , Heiko Stuebner , Shawn Lin , Adrian Hunter , 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" , DTML , Linux Kernel Mailing List , Linux ARM , "open list:ARM/Rockchip SoC..." Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Mar 2019 at 12:39, 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 Applied for next, thanks! Perhaps both patch1 and patch2 should be tagged for stable? Then please tell me and I can add a tag. Kind regards Uffe > --- > 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 >