Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp252339yba; Mon, 20 May 2019 08:09:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZJx6XSt/2lKRHM+D6lhUIe54SplZnLzjOiarS3jPOolTp90pIQw2IUpO2ivLAiW8FHRT2 X-Received: by 2002:aa7:8495:: with SMTP id u21mr70480949pfn.125.1558364956008; Mon, 20 May 2019 08:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558364955; cv=none; d=google.com; s=arc-20160816; b=izsLLYeqF1/LROknYcN8hGptVzPsH6/vRXTR5Zz0vbuy5a5je2hZJ82VhDSPG/+ivg q2L6Adx9FOI1nOuwmSMdKOPSvzcOInU4YNcQ4cvslD/Ry58McRVI18qN0vb2o9jQAjMe YewvXpun39LopyZpAm/53iLoZgDWBjJ/ydgumFjXiVDGTipA5ke5Z+Sz+CsMJYjxcmm7 kUjNhgp2Lb9ZlTAFvxLe34VuN9pGjPfF6sQvflp+OoY5iECHjjuO2aoMrjB9l+rYAO0k kzjKL3kUGwuGZ+ddeawSV+9JZDw/ybqpnipnsA9XBr1hEtharMp/EPKvZya4TwK84v4H f9fA== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OmSbxVsdmSBP7XgJo3e1vSpTbfxFYhLGqeZDIDN3wgU=; b=RyG83pJBkdtwofclSiwWOnFbd1t2mw9cE+xMMtpdnAmJGR22eiVxYfi+F9xGajqOqA /BfnbcXJwHpZ2W05EHw2s9A74A3bKfOZ5BIIOZ/mqTGw+QQn68rk1tE3+6Le9SvLIzzq lV4B2FznMPSL13o+EjPzf6tUZYSgPv+gkFR6lnsA4Htfr6o0C/XlCfUM+r2k/Fk2xxsf HN5qWGQoK6kM0m4N4ecdLD7tfUsD1Ip9+06lb4ct03IA4nsSSguZSI90JPUsCKjF14ni KOYmjwgW8bs8d/nZ1dcHT9llFcdaC1Qzorclt6ZzjbKdlCn1GtBeXpjmt9Gd1ZDXyAYv bueg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J+y5UJAS; 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 m19si17795763pgl.241.2019.05.20.08.09.00; Mon, 20 May 2019 08:09:15 -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=@kernel.org header.s=default header.b=J+y5UJAS; 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 S2388507AbfETMWu (ORCPT + 99 others); Mon, 20 May 2019 08:22:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:36940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388495AbfETMWs (ORCPT ); Mon, 20 May 2019 08:22:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CDA1520656; Mon, 20 May 2019 12:22:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558354967; bh=k5fc7sc3wqn5LciGYefwfLbvSjg+iKQpjjiDBqEQzWQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J+y5UJAScqMH8HsqMIg+QZCmqeqWiiwVD7gOnysk2pNmBVbTqfhiCXaoDN5ZmG5/u zMnQPYh4oCZld7g23twLN5iWzaNGP1xwIWf+LUncgQGqTOuN6q3QU7M/LkPOBLLMap ebljOE3WzoFWAlwskIX7BqBE5wIeXpTFUllVpx+4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christoph Muellner , Philipp Tomsich , Adrian Hunter , Ulf Hansson Subject: [PATCH 4.19 008/105] mmc: sdhci-of-arasan: Add DTS property to disable DCMDs. Date: Mon, 20 May 2019 14:13:14 +0200 Message-Id: <20190520115247.622986449@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520115247.060821231@linuxfoundation.org> References: <20190520115247.060821231@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Muellner commit 7bda9482e7ed4d27d83c1f9cb5cbe3b34ddac3e8 upstream. 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 Fixes: 84362d79f436 ("mmc: sdhci-of-arasan: Add CQHCI support for arasan,sdhci-5.1") Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson Signed-off-by: Greg Kroah-Hartman --- drivers/mmc/host/sdhci-of-arasan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -814,7 +814,10 @@ static int sdhci_arasan_probe(struct pla 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);