Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1383797rdh; Mon, 25 Sep 2023 11:01:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG1/Afs8InRf02TK1sCBszxiq9pbGiQgEvZfHel0o3uQXJaXb1eXgvjTu1nfVITzcxSqRk2 X-Received: by 2002:a05:6a00:2985:b0:690:9a5a:e34e with SMTP id cj5-20020a056a00298500b006909a5ae34emr412248pfb.12.1695664901683; Mon, 25 Sep 2023 11:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695664901; cv=none; d=google.com; s=arc-20160816; b=wYFkuCZHgA5W9CPfsYV1OVEYUAtQbphbjHmX/ZX1XkkJidjiNYl8ffd2Npq68cSF3a aHhCR8qNugwRTkZYkySDJO3QLmFYtWR5JwAobwzeyy4uYoUsENLRD/eRPa54/FZSPuo8 BVp7qdeC3fkDvJKHnMyGSUu3I0K1sMrkweEnO0QvPcj/SCLcsv1PHI3QMzcDw9OatLhB IEzY/BFCyc/SSfX6IEEjGuK+QL8Tlt75fIDAbjg/PXaONbR6XQ2VMlyd9Pidn/f5BB4D SQiJxQjm5+Lr1WqsnQpu0sl6js946kSox2996z8+2hLwBA4+MkcKJ8Zw9Z+nNJ/Xd/fV Sb9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:autocrypt:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=JUEX1okyPyaZIxBCuz/QiTWxHyh44RVFDy2DQxkbVuU=; fh=eUmEULGNlvloRwDvg1KPDnyTzSmjfjhWvBawhC8fHnc=; b=T3C17LH0JfC6Lsp+2k9w7g/UjSt8IZAxuUJxJeijVY9pYqjq5yUO+Oetu9L5k9GhJh BWXLV5gGfJ1oNeFGjBxqP1cDWrMs4P9vTKfTAnb4aR4HQcUG9z1WdHZ3Z9QabdwqrdjU SHwWYo64Pok2MIvJKPHBiWkbiZEyudFbjnmVcrx+AirqOCFZ03/IuW8kany5npp3mMEF wFL45POOS7KshkcPelU3NcaG43vvdGwGPWktBI4YqTsiM1Ao+kbn8gSnTLp6FUBEgRNP S0P8p2aLFCNI5li5Jz/9B+l72yIl56+HorW5l4Pa+iRlJEjLLLi8De6c1dPJ/w7uTy03 qexA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=Cq7O5cQ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t20-20020a639554000000b00564efb3bae6si10232846pgn.564.2023.09.25.11.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 11:01:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=Cq7O5cQ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 118268048C0B; Mon, 25 Sep 2023 03:23:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231215AbjIYKX2 (ORCPT + 99 others); Mon, 25 Sep 2023 06:23:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229705AbjIYKX0 (ORCPT ); Mon, 25 Sep 2023 06:23:26 -0400 Received: from xry111.site (xry111.site [89.208.246.23]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2C728E; Mon, 25 Sep 2023 03:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1695637396; bh=zNEHMjTGryYRc6k3/UydU+1ksmTv+08v4jyV1rUpTZw=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=Cq7O5cQ1W5BjxBPgVTIeSExTIcnTkss2LgFbDKyL1+OfokdjiQUKwYj/rCeVBYYe6 OWy/PSeRL8JvoqDTBGlrACxgx8BU3W/8yqcQ3T7L7dU01Y6WaBXoLxw6eyp4Tj9ERH vOhPBooPo2/mzjHgHwcQgh8nVjnlSSor0GLts8KQ= Received: from [127.0.0.1] (xry111.site [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 16B32659AC; Mon, 25 Sep 2023 06:23:11 -0400 (EDT) Message-ID: Subject: Re: [PATCH 2/6] mmc: sdhci: add __sdhci_execute_tuning() to header From: Xi Ruoyao To: Adrian Hunter , Drew Fustini , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley Cc: Robert Nelson , Jason Kridner , Han Gao , Icenowy Zheng , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Date: Mon, 25 Sep 2023 18:23:10 +0800 In-Reply-To: <4ef60ffd-3661-4bca-91a3-b49d6189c71b@intel.com> References: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> <20230921-th1520-mmc-v1-2-49f76c274fb3@baylibre.com> <4ef60ffd-3661-4bca-91a3-b49d6189c71b@intel.com> Autocrypt: addr=xry111@xry111.site; prefer-encrypt=mutual; keydata=mDMEYnkdPhYJKwYBBAHaRw8BAQdAsY+HvJs3EVKpwIu2gN89cQT/pnrbQtlvd6Yfq7egugi0HlhpIFJ1b3lhbyA8eHJ5MTExQHhyeTExMS5zaXRlPoiTBBMWCgA7FiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQrKrSDhnnEOPHFgD8D9vUToTd1MF5bng9uPJq5y3DfpcxDp+LD3joA3U2TmwA/jZtN9xLH7CGDHeClKZK/ZYELotWfJsqRcthOIGjsdAPuDgEYnkdPhIKKwYBBAGXVQEFAQEHQG+HnNiPZseiBkzYBHwq/nN638o0NPwgYwH70wlKMZhRAwEIB4h4BBgWCgAgFiEEkdD1djAfkk197dzorKrSDhnnEOMFAmJ5HT4CGwwACgkQrKrSDhnnEOPjXgD/euD64cxwqDIqckUaisT3VCst11RcnO5iRHm6meNIwj0BALLmWplyi7beKrOlqKfuZtCLbiAPywGfCNg8LOTt4iMD Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 25 Sep 2023 03:23:28 -0700 (PDT) On Mon, 2023-09-25 at 13:21 +0300, Adrian Hunter wrote: > On 22/09/23 04:49, Drew Fustini wrote: > > Expose __sdhci_execute_tuning() so that it can be called from the > > mmc host controller drivers. > >=20 > > In the sdhci-of-dwcmshc driver, sdhci_dwcmshc_th1520_ops sets > > platform_execute_tuning to th1520_execute_tuning(). That function has > > to manipulate phy registers before tuning can be performed. To avoid > > copying the code verbatim from __sdhci_execute_tuning() into > > th1520_execute_tuning(), make it possible for __sdhci_execute_tuning() > > to be called from sdhci-of-dwcmshc. > >=20 > > Signed-off-by: Drew Fustini > > --- > > =C2=A0drivers/mmc/host/sdhci.c | 2 +- > > =C2=A0drivers/mmc/host/sdhci.h | 1 + > > =C2=A02 files changed, 2 insertions(+), 1 deletion(-) > >=20 > > diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c > > index ff41aa56564e..fd607058d176 100644 > > --- a/drivers/mmc/host/sdhci.c > > +++ b/drivers/mmc/host/sdhci.c > > @@ -2841,7 +2841,7 @@ void sdhci_send_tuning(struct sdhci_host *host, u= 32 opcode) > > =C2=A0} > > =C2=A0EXPORT_SYMBOL_GPL(sdhci_send_tuning); > > =C2=A0 > > -static int __sdhci_execute_tuning(struct sdhci_host *host, u32 opcode) > > +int __sdhci_execute_tuning(struct sdhci_host *host, u32 opcode) >=20 > Also need > EXPORT_SYMBOL_GPL(__sdhci_execute_tuning); >=20 > > =C2=A0{ > > =C2=A0 int i; By the way should we rename this function? I think "__sdhci_execute_tuning" vs "sdhci_execute_tuning" might be confusing when we export both. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University