Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp403416imm; Thu, 30 Aug 2018 01:37:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaAkxBYj48oBXAY/DEGOQ3ly5DctgbzzJwmkI/jco4npjlsbkcCKtX5kbbxvqQ2fN3evoze X-Received: by 2002:a63:5204:: with SMTP id g4-v6mr8743642pgb.274.1535618267586; Thu, 30 Aug 2018 01:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535618267; cv=none; d=google.com; s=arc-20160816; b=SRlaCQ9FpE6ED19tXeB3ImpfUrnZv6Phvd/VTGOohnuhiQKHBhhZbGNYt3hTjElSAs CSpsE+pEPFNdtZob9jy+BZ6xcGQJ2jOhLvqstPv9YeOE5deg+/mi9I82N6dsRBj76fhC +r7VKPv3FfghmO2ScXm/ZKhP5kk555K6WUfROWFyd0oK033nE0baUCR8HNVaQrnmWnFh L8DYQWcyulEMIAJeb7V3dxK6cGumpdOFhH36gd+OG5jSLeCmqc6cdTmXWzpJd/tzMjXm OXQ3ByMou6Ib/Vhb3vaA+9tZ9twjJuAEhJUkXP2qXdDO8DCbZZsE4DZzsTBgB0YB2qot zIrg== 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 :arc-authentication-results; bh=yt2rNjjvUuDpgu87zUJkbfBDpuVcregVuMrlTQ88MBM=; b=Dpv0Or/Kh/SeWrwIBoalQFpzjkSr4EJfi++zrAnCKDxr/SFmxmwf1hXjjaRthKv4nj 3FmxMghNX436ATVr8Xjqm6U3SBTsy2nXYtTL+r2mm9+Nu4O/Uz/SIOMd+R7FIPGVbVoi Xxu+EhPG9Ooe3xuS1RvuKB+OZDpCNU+yR38bY2uNoe0RZYbcLK40hbdRW1TPFo+w8PEX e8eiYHeAEiShUgixDgcIZJaAeG3K97QXmL5vdEcvyebOTW2Iice4z1AWi5E+71jTNF+U aHHQjDEkMYQtD17tPXIJYdj+Ytjikic45IOWOWEFeT7Iie54tKHNuCYCJmqSasouJhUM lOTw== 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 v3-v6si5805002plp.85.2018.08.30.01.37.29; Thu, 30 Aug 2018 01:37:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728024AbeH3MhY (ORCPT + 99 others); Thu, 30 Aug 2018 08:37:24 -0400 Received: from mga09.intel.com ([134.134.136.24]:38766 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbeH3MhX (ORCPT ); Thu, 30 Aug 2018 08:37:23 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Aug 2018 01:36:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,306,1531810800"; d="scan'208";a="253109906" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.98]) ([10.237.72.98]) by orsmga005.jf.intel.com with ESMTP; 30 Aug 2018 01:36:19 -0700 Subject: Re: [PATCH V8 7/9] mmc: sdhci: SDMA may use Auto-CMD23 in v4 mode To: Chunyan Zhang , Ulf Hansson , Rob Herring Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Orson Zhai , Baolin Wang , Billows Wu , Jason Wu , Chunyan Zhang , Chunyan Zhang References: <1535617305-16952-1-git-send-email-zhang.chunyan@linaro.org> <1535617305-16952-8-git-send-email-zhang.chunyan@linaro.org> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <4931d113-1af0-26ed-ae96-8ccd1be99334@intel.com> Date: Thu, 30 Aug 2018 11:34:37 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <1535617305-16952-8-git-send-email-zhang.chunyan@linaro.org> 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 30/08/18 11:21, Chunyan Zhang wrote: > When Host Version 4 Enable is set to 1, SDMA uses ADMA System Address > register (05Fh-058h) instead of using register (000h-004h) to indicate > its system address of data location. The register (000h-004h) is > re-assigned to 32-bit Block Count and Auto CMD23 argument, so then SDMA > may use Auto CMD23. > > Signed-off-by: Chunyan Zhang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c > index 62d843ac90..606d331 100644 > --- a/drivers/mmc/host/sdhci.c > +++ b/drivers/mmc/host/sdhci.c > @@ -3834,10 +3834,13 @@ int sdhci_setup_host(struct sdhci_host *host) > if (host->quirks & SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12) > host->flags |= SDHCI_AUTO_CMD12; > > - /* Auto-CMD23 stuff only works in ADMA or PIO. */ > + /* > + * For v3 mode, Auto-CMD23 stuff only works in ADMA or PIO. > + * For v4 mode, SDMA may use Auto-CMD23 as well. > + */ > if ((host->version >= SDHCI_SPEC_300) && > ((host->flags & SDHCI_USE_ADMA) || > - !(host->flags & SDHCI_USE_SDMA)) && > + !(host->flags & SDHCI_USE_SDMA) || host->v4_mode) && > !(host->quirks2 & SDHCI_QUIRK2_ACMD23_BROKEN)) { > host->flags |= SDHCI_AUTO_CMD23; > DBG("Auto-CMD23 available\n"); >