Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2308908ybl; Thu, 29 Aug 2019 06:35:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7+0HM2O6/e/by5ykS02txHVNpMznj0BGvx/Yw4VYMGzFLrjz9xhPYjfIH5DGZa9olMf7H X-Received: by 2002:a63:5765:: with SMTP id h37mr8143320pgm.183.1567085753493; Thu, 29 Aug 2019 06:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567085753; cv=none; d=google.com; s=arc-20160816; b=k1Y6EUaTB0/XtyDwBhU5j9mUDTE96AzQuOoyKhxuZjnROLxsEO+SQ7bwh5kq4tHBlV ITcN5TVFFAvaKFRcX5OimVW4jdywOggC4YXQ9fq7DJEEKgveqrcAiRdnYCWqVcoUbbn+ pRjYmsfo0kR3lQI5q4uNq3Lhs4oZQearHXVEn48u6cpAzEAh2i3YyFNvwyTXWLhV5LJR Ow8W8js01W92Hke6NBbz3675ReE5+pGCtkgnIs6bYqraupiiHYsw3Trhh76cuAFDx1oQ qohc243R4OzCS2/yN7o25sIkHjUKZdshGF31mA7iYyoxOfh0t/sej9g0eGo/8dlMPCNz auzA== 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=SZQRw3RVA3EaoAr0WIMQeD6W5AQqkz7QcXOAzySMDsY=; b=aJCjwa/oFzqDJ/8vr144KowGy0rpzYqjeucu3TnXUyEiVrowlY4dP6cyeEfwX8uTGv KSDVpHf65IEFZKkwdui2RzO6QAD9ZV+l9rz9I0hyJzEGDg+0sFdgNOTTU9l4zmPpYkq8 mbuxbx7/Zx6ULrNskx6XQWbt+Qd8wJZn5ivLtUGUNSe0VljblD2gsjA5ULjYpxRU+04o QhXK3EKbvtq0Q1mRC2EisqH9ADQUpefEdEg9bntkQSHT2dBDJFzZYIxAWdziTbZV5uVs x1rTaQJ/4uugMogXjG2BXKweEYr2oSzfu4YxgYWU9Xf0Lum4F/QOTVgF8EUrSSkbbZG0 igEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mjlYQJZX; 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 31si1898931pld.65.2019.08.29.06.35.38; Thu, 29 Aug 2019 06:35:53 -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=mjlYQJZX; 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 S1727662AbfH2Nem (ORCPT + 99 others); Thu, 29 Aug 2019 09:34:42 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:43967 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726950AbfH2Nel (ORCPT ); Thu, 29 Aug 2019 09:34:41 -0400 Received: by mail-vs1-f67.google.com with SMTP id l63so2389010vsl.10 for ; Thu, 29 Aug 2019 06:34:40 -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=SZQRw3RVA3EaoAr0WIMQeD6W5AQqkz7QcXOAzySMDsY=; b=mjlYQJZXOCLmvYeLiazuIx+UY3wq5N7PVqOoMMGdiGRuWszrbjeeG5BdKIii+kFHf/ zhlLgNOZDNfFJXEdvpQSldMZMsfy3EAJU813E8s8mZ+LwtLBw1/xuvT9iVLTWp5kBDr0 XwgPt6sJe9MH17Gypg7IM3bSIV0w3vqZrnGDTNkHo9HKv9QPubEQ64tjw3T4vW/y1qWd P+3wZ/TYKCfoLGt9fjKNW32dtfxb28uZucnpAUmnSnWu6OoBM32fBZAXuRoGoxr1yJS4 7QdSZ0ebZfNHcA+OWcb9389vfghhRPbVUuIXr5DfUxHNQFkXnLPg4+DzWZRh5ppANMTA C4HA== 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=SZQRw3RVA3EaoAr0WIMQeD6W5AQqkz7QcXOAzySMDsY=; b=mZXEqfER/tXYlY16cbIs9f8Nb8gUz96zJJ1hJoWlV0R7mX7PJpuv5XbMGJhq/2c19d u9IdcF9Hsx/4sMyWS5fifvnJpfDVKwuL3TCnemxwEDhEiLGO4hWD0Dksm6pAAP7OSEkp QPgopeJl1KXPSa301xb/iApq2cKGLg6XdjVTNv/xm6i4QW5f+bBKpRKzznr5vMk8Y+k5 GXDjgXGQC+K7BsGodssXvwcDKQ4VLsWqfcC/xB6ZLAh9rzjY+kiP6GHGUs941kSmxAfM cui3wCZ1o7mivm/RscStZfgXWVGsGdLOu41e7aCoIdzp+zu5o0w1XKWM2fb8VV8zTXgs DQ8Q== X-Gm-Message-State: APjAAAWZyni7rJpbXxUu/T1lHutFcs1ilgf30igElPrfgVkCmPF8J2Vx qZq+/Tk56/w/oUtzon3vn7gWBVppbT1m6L4Zc9tcdA== X-Received: by 2002:a67:32c5:: with SMTP id y188mr5483153vsy.191.1567085680040; Thu, 29 Aug 2019 06:34:40 -0700 (PDT) MIME-Version: 1.0 References: <20190829104928.27404-1-yamada.masahiro@socionext.com> <20190829104928.27404-3-yamada.masahiro@socionext.com> In-Reply-To: <20190829104928.27404-3-yamada.masahiro@socionext.com> From: Ulf Hansson Date: Thu, 29 Aug 2019 15:34:04 +0200 Message-ID: Subject: Re: [PATCH 3/3] mmc: sdhci-cadence: override spec version To: Masahiro Yamada Cc: "linux-mmc@vger.kernel.org" , Adrian Hunter , Piotr Sroka , Linux Kernel Mailing List 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 Thu, 29 Aug 2019 at 12:49, 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 Applied for next, thanks! Kind regards Uffe > --- > > 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); > > -- > 2.17.1 >