Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3165671rdh; Thu, 28 Sep 2023 04:53:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxe5TYCml9CEmPliNTbKSCT8lhNQnqws5mkb7Z/wkMv7hm0aCVOwXYGV9fnBp7sDNgRCFH X-Received: by 2002:a05:6a20:4327:b0:160:58f5:693b with SMTP id h39-20020a056a20432700b0016058f5693bmr876926pzk.44.1695901995502; Thu, 28 Sep 2023 04:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695901995; cv=none; d=google.com; s=arc-20160816; b=A+lp0AJKddbNogtfP3g6zgOgLfW3TwP80mPpYnZBgdVj47xrVbOkNvMZzaklmZMlS7 FLAFESG5e2DQ6YknOvQSV7PkrYlpEQGbjRebvEQnQcWQHroQHgjyTLkJWCym7wa0dr0f nH4YoQYXogmBgw9ozWVoaKakNu87HRfMwJ+XgduW/D45F2XYj7bXjtBg0IS34B1iQEEs Jk4BjFEcl0Xj5mh1YH18qGiemOV3SiCvbaDN8HOiG7XiHs4KZ4wcYXOQt6ijf+4KMpP9 /c1kFCzVNWlB7A/FTHJz6LMunl7aeSQ4dpZVPeMOWHd5t/0PhNZUt+6Z3dzWATOoRhQe Lwow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=CFz+5u99C0Z+1IpQjQ6pjaQ+vg/IenXfYU9uw6/q3fk=; fh=+Kv+pe/jNi4S7e8MdNudT82yJVV1ocYa/Y7NWfV1V7I=; b=uQ7ItUQ9RbwCpo2qHOTN8Y+5LGHrIkeEA2HGbiuvk6X3pSGSym2WXAkdraBn/GycwK A5Eq2tIKZ2bZCJKzamjHAwq/mDz/4yE9vqKI3b4b7E8AtepthK7suy7ESlKthkz2OcjM /TcQBdNQvlSqyu4am4pPePhjO9F9FjnFwbktqX6m72OgZZHporzDfXUQY4pJf0+RbTGY asA7qkyyS3Gvk09TCfv87Khx6qfYXBuVR+7DrnT8tCsqeFZYg0et0z7UXk+be3ftgexL 9/oridiU7Vp5hJ6eIpwWxOwQDll9aAG4f0u95rfCcwkfvs7yA4f+JPKLoPwrO9LsOKMK RVCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RTXjcYLb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l3-20020a056a00140300b00690d624f294si19095072pfu.322.2023.09.28.04.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 04:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RTXjcYLb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4A981808E663; Mon, 25 Sep 2023 03:32:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232281AbjIYKcS (ORCPT + 99 others); Mon, 25 Sep 2023 06:32:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232149AbjIYKcO (ORCPT ); Mon, 25 Sep 2023 06:32:14 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39D70127; Mon, 25 Sep 2023 03:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695637925; x=1727173925; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=G7gQNM2ETXkwxgbdw0M0S6loHs2HYqulZXnsb3ikQcU=; b=RTXjcYLbwD4jCCpZI8rqtIZMM3MHXrgOt67Lj+65mpMFF/l6DYPOLits /pXEK3KLDZch4pm85RclXIsXk0MTPDpHnVcrH4uZEzCXd/NjA8EqFyHuO oJQ+ejzdUxU/MUpdcqpKV6l5yraxSluKvfcSZ+s9Pan2CB5cgG4sGKXkH a6ENWQ0SB8qaZbCoVSGsMElxGT0rS5xNn4E7bP39CxYVUmqZHwJkeTj4H vSlxxxgsaclBqxjDoFZpDe/kTkFR9X4OiGwPD3wOVKiWb0XtmoSGwDDBA fm8P/rMn34WKjeqtwlATt+AxGAggDglmbvv7AMOZFHlAhTYp1ubfiIlPw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="361473793" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="361473793" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 03:32:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="818562298" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="818562298" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.50.180]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 03:31:59 -0700 Message-ID: <30f4276b-5e29-4a7a-9b4c-6bab505984ab@intel.com> Date: Mon, 25 Sep 2023 13:31:56 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/6] mmc: sdhci: add __sdhci_execute_tuning() to header Content-Language: en-US To: Xi Ruoyao , 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 References: <20230921-th1520-mmc-v1-0-49f76c274fb3@baylibre.com> <20230921-th1520-mmc-v1-2-49f76c274fb3@baylibre.com> <4ef60ffd-3661-4bca-91a3-b49d6189c71b@intel.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 25 Sep 2023 03:32:21 -0700 (PDT) On 25/09/23 13:23, Xi Ruoyao wrote: > 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. >>> >>> 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. >>> >>> Signed-off-by: Drew Fustini >>> --- >>>  drivers/mmc/host/sdhci.c | 2 +- >>>  drivers/mmc/host/sdhci.h | 1 + >>>  2 files changed, 2 insertions(+), 1 deletion(-) >>> >>> 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, u32 opcode) >>>  } >>>  EXPORT_SYMBOL_GPL(sdhci_send_tuning); >>>   >>> -static int __sdhci_execute_tuning(struct sdhci_host *host, u32 opcode) >>> +int __sdhci_execute_tuning(struct sdhci_host *host, u32 opcode) >> >> Also need >> EXPORT_SYMBOL_GPL(__sdhci_execute_tuning); >> >>>  { >>>   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. > 'name()' and '__name()' is not a particularly rare paradigm in the kernel, so it seems ok.