Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2284727ybl; Thu, 29 Aug 2019 06:17:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6+K5efYnKDQiCVszozOPPTwIV9S2ZKOPttkAdl0Wbc/gwGrF76Ayrl4NGg0YjaFjq3YVA X-Received: by 2002:a63:9245:: with SMTP id s5mr8436791pgn.123.1567084624947; Thu, 29 Aug 2019 06:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567084624; cv=none; d=google.com; s=arc-20160816; b=Gge3aB5TzmVxgusJpUnVa0/rekEoLBC/pXr/5STNidVz9XY0tqXclNnNFM0SLR2hKD DmPg5604ewmR7w3uvT/c6UWSf4PZPZJTBvYSexkOI0voYSah/YNgry4ZkaoFSIfn2nop JoCKgH9f/PRCZ8iT8fWuUheXt12P/RmpgG1+ViUYw0D9lCPa+pKSEBAaKfPG1Bvo+w2R y4XNqZlgxaX2bh0af8eBbhlnrui8G9TxuM0TdEMgKjbS9fYzCAVAMQGvwgBm8i4MblfW G/zVg9Zrft/s13XEpKUtHrfT4cGfvUeo0xTuv0F7piSt2blQ/q2yCGjDnNQ4HBQgI2ej VUuw== 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=92daDcx4WzocRaR1Ai40W8FUXfpm9n52LVeI6Ba2J/4=; b=BD0Q2W19I+GjbvtudhYJFje8JRJUs3WPl/yF0UgqKeGVez0IIERBkveJyYnxTJz/pK kpPQYvMG0Fb638RUsTyShkiTwlYIMLIKnlBuLrrPy/jTHTiWOlIgRnmCZaEmQDjKMva1 RAAT7cpNpYnFTbhkcxthO8/50GswyHd0/xWc6YiJXdk5wA0IktAuhgXX9W+EHfmZdFYY VBxNbuYD/lID1EUVI27o2pS/l5DIBr3sX72cV+diOI0VmjSVS32uQJpPHGqRPvwlpzkI AbE/ZuZT1Ze61rLwQmknxrE3wZCHXHWooZ2BUVBiivdVs1Es/SPpeva/hKeWxUHnmm+R 7YOg== 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 f10si1877041plj.316.2019.08.29.06.16.49; Thu, 29 Aug 2019 06:17:04 -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 S1727626AbfH2NPw (ORCPT + 99 others); Thu, 29 Aug 2019 09:15:52 -0400 Received: from mga02.intel.com ([134.134.136.20]:40675 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbfH2NPv (ORCPT ); Thu, 29 Aug 2019 09:15:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 06:15:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,443,1559545200"; d="scan'208";a="197803586" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.66]) ([10.237.72.66]) by fmsmga001.fm.intel.com with ESMTP; 29 Aug 2019 06:15:48 -0700 Subject: Re: [PATCH 3/3] mmc: sdhci-cadence: override spec version To: Masahiro Yamada , linux-mmc@vger.kernel.org, Ulf Hansson Cc: Piotr Sroka , linux-kernel@vger.kernel.org References: <20190829104928.27404-1-yamada.masahiro@socionext.com> <20190829104928.27404-3-yamada.masahiro@socionext.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: <8c0d5889-6850-077f-4928-5e4b7f115b4f@intel.com> Date: Thu, 29 Aug 2019 16:14:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190829104928.27404-3-yamada.masahiro@socionext.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 29/08/19 1:49 PM, Masahiro Yamada wrote: > The datasheet of the IP (sd4hc) says it is compiatible with SDHCI v4, > but the spec version field in the version register is read as 2 > (i.e. SDHCI_SPEC_300) based on the RTL provided by Cadence. > > Socionext did not fix it up when it integrated the IP into the SoCs. > So, it is working as SDHCI v3. > > It is not a real problem because there is no difference in the program > flow in sdhci.c between SDHCI_SPEC_300/400, but set the real version > just in case. > > Signed-off-by: Masahiro Yamada Acked-by: Adrian Hunter > --- > > drivers/mmc/host/sdhci-cadence.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-cadence.c b/drivers/mmc/host/sdhci-cadence.c > index 44139fceac24..9837214685b6 100644 > --- a/drivers/mmc/host/sdhci-cadence.c > +++ b/drivers/mmc/host/sdhci-cadence.c > @@ -341,6 +341,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev) > unsigned int nr_phy_params; > int ret; > struct device *dev = &pdev->dev; > + static const u16 version = SDHCI_SPEC_400 << SDHCI_SPEC_VER_SHIFT; > > clk = devm_clk_get(dev, NULL); > if (IS_ERR(clk)) > @@ -370,6 +371,7 @@ static int sdhci_cdns_probe(struct platform_device *pdev) > host->mmc_host_ops.hs400_enhanced_strobe = > sdhci_cdns_hs400_enhanced_strobe; > sdhci_enable_v4_mode(host); > + __sdhci_read_caps(host, &version, NULL, NULL); > > sdhci_get_of_property(pdev); > >