Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2755345rda; Wed, 25 Oct 2023 11:17:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRcr4SxEBndK92QCmYZsnt4CIAiNhy+T2YUET5riGo6Q8CWRLje3TGZJaOAHWP62Y80RbN X-Received: by 2002:a81:4f0c:0:b0:5a8:181e:8d6c with SMTP id d12-20020a814f0c000000b005a8181e8d6cmr14416717ywb.10.1698257845125; Wed, 25 Oct 2023 11:17:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698257845; cv=none; d=google.com; s=arc-20160816; b=eqS+80ASgWfd9Hi2iieRZkZjnrMMzqHSfEpk8dVO4d7CcRxjrdPzbP1y3Y7koPj6RA Wamh+dC6JdSvllMgtMssVKCQgM4mcrHYGolQOyOPLQcqEX02tZgjPj/GQcMnADGWaqGF GU0oYkyfRsh75FnGcr/3jU+yoDXzhGY46QSD4nVztVSREL8CRpjjJwpqgVs2b7v7gkan wNbvCP8ogPb4RVOdA9OFTKyWSUNJoLUVTqSRlCP4dsMWMB2vDD19l+VbGS68VuD/il9/ oQuCLM+hErZgHv/KU9Mw59Ec11KebP5d3t0lHOECy9QL/5TEdtyZpferKUo0LEe0JGfi VuZA== 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=9mD6Pacr0oqTN+2Wee5vVPhrDiCBaEWeqhS/inE8eIo=; fh=XwYHYd8H9TE7Agk10aO24QKOVf2GqdadSq9IHzEZZRE=; b=hrIgMH0+p1kMmGjbl4WFUA/cPpalC+2LATZ1WOz+AaVM12LdW4ZaK5zvP3CpaBKYe4 g+6WzR6OrCmqDRcieJ/TEhoE7JfA4YlBn1UZXC3eTHuSuqu9bSLYNnpGhbhNMQyj4FXr IgDJVV9dtYyp005CM3JVoyvhKZTlnqzVurT4kmlV7d/zQhI1JtxwPxqg7XPdEVr35HmC X0glKGBZBbTU3mkgcszdptrEaDJTK/cOMHSstE9uzfNlQKSW/R9K3BZy4MYoZ5wBM+fx fATyQ6gx+3WxjlQR+rOopPtjftX7Jx8AyGDJ00DZ7znVfXbEFcxpqwpQvbngFJ930VlY FJCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hkhEh2n0; 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 w18-20020a814912000000b0059c0f98ec97si11146808ywa.311.2023.10.25.11.17.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 11:17:25 -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=hkhEh2n0; 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 05DCF8028A60; Wed, 25 Oct 2023 11:16:42 -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 S233980AbjJYSQg (ORCPT + 99 others); Wed, 25 Oct 2023 14:16:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbjJYSQf (ORCPT ); Wed, 25 Oct 2023 14:16:35 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76A0293; Wed, 25 Oct 2023 11:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698257793; x=1729793793; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=l26QKq7EILoWpWB0yHdqaizdI+WWdlawNjV7kFBCamk=; b=hkhEh2n00GasnpkF6FfQhjl8kxgLAJa5ONPZTGfFjo6FP12s1xDEGapu WcGYOu+u0/rAtqplnEgC8u6TERBN4vcndJm0BxheSzCJgd4MmU7mLdNNH sX7zSYGS7OZEU0Oui8EtGN1FmDmJpIJZYbihdFm0oWoNkx/+c4QsmcJ1P 7UQCcPfx9q7bVCor6L2CDwuiK846sfHxD7Xp5LKIq/uUyiUvxIvBs7ci/ hCMyA3vnVh9QuTRAvS0gRV0d+dBNFljOG0m/AUY+wjh7WEG1lO5/2Q/bJ 5oLo/Yfle+wpvQBOUZdoBl4ZBrhl92JX1zmsUMuwQNnBjMXtDNecGhKCb Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="384579859" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="384579859" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:16:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="829322954" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="829322954" Received: from ahunter6-mobl1.ger.corp.intel.com (HELO [10.0.2.15]) ([10.252.32.107]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:16:27 -0700 Message-ID: Date: Wed, 25 Oct 2023 21:16:21 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/7] mmc: sdhci: add __sdhci_execute_tuning() to header Content-Language: en-US To: Jisheng Zhang , Drew Fustini Cc: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Robert Nelson , Jason Kridner , Xi Ruoyao , Han Gao , Icenowy Zheng , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org References: <20231023-th1520-mmc-v3-0-abc5e7491166@baylibre.com> <20231023-th1520-mmc-v3-2-abc5e7491166@baylibre.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: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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]); Wed, 25 Oct 2023 11:16:42 -0700 (PDT) On 25/10/23 18:29, Jisheng Zhang wrote: > On Mon, Oct 23, 2023 at 02:07:03PM -0700, 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 > > Hi Drew, > > Just FYI, my th1520 version patch in my local repo overrides the > mmc_host_ops.execute_tuning as the following: > > host->mmc_host_ops.execute_tuning = dwcmshc_execute_tuning; > > In dwcmshc_execute_tuning(), I will do some necessary setting then > call sdhci_execute_tuning(); > > So I don't need to export __sdhci_execute_tuning(). The main reason > is that the __abc symbol is expected to be used internally. However, > I have no big preference. I would leave the decision be made by > mmc maintainers @Ulf @Adrian, can you please comment? > It is OK. We try to consider SDHCI as more of a library, so sharing any reasonably well-defined function is OK.