From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0037C04AAC for ; Mon, 20 May 2019 12:22:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BBEFB214AE for ; Mon, 20 May 2019 12:22:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558354971; bh=k5fc7sc3wqn5LciGYefwfLbvSjg+iKQpjjiDBqEQzWQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=FUU67mHgLTQ4wL20KHF8SbZMsdZWC//gCmop9zGQ3AgYEx01APi0nbaIo1F9vjst4 bytrcA0KSkAaAQAaXxnSzvjhxt30gJutqLX2aDrDCzl2bZ1vxQ8kGSHOReD4+fjl+p Sz2xSKx2a8B5oDafJXIF52bpYa2xBCLJFCxRWhwU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388511AbfETMWv (ORCPT ); Mon, 20 May 2019 08:22:51 -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);