Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1264293ybt; Thu, 2 Jul 2020 00:43:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyp66NBZ4K4gtqda/03lmZQ4kzcE3J8rMXsjXBs/69mHLlgAPN8AeaWzhRjfbCG0qsPrs+I X-Received: by 2002:a17:906:b0d3:: with SMTP id bk19mr28101785ejb.167.1593675839572; Thu, 02 Jul 2020 00:43:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593675839; cv=none; d=google.com; s=arc-20160816; b=M0iRTAXKkFmT05ur3kY9XvBYViTN3t6MAfL813RR0nKfnovrhPidZlY917N7oNBQY0 kYl0Aj9BjDCmk6VxQAGMCNsRIKFLxLeQlpCgW8VTJfVWi7c7HCYCLkNjcUYoTZEEYziD 1IuZ/vFSgnFaMnsi9pS9NzRKBjjREtPmoaF1viGl8BMMcZRUZCpl0QNOigZxdKGPxT9z xhfj3APyb4pYR+avagyrdTBQ25uCVAvhLCJAuRvq0qVHcBYFLeiXXDDQczSon936F+zD nKXPrX0zKnAWEn9R9joTGcGI84g8OusixRkq/h57ppxrVq5y0K7IVUu7RXo4Cy7hP21V VuWA== 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; bh=gbca+XN7B6mWmE8NOWXElExDkvwHSXyBFryN++W1XoY=; b=RCW1IIiKmI0qi0jX3edtCHNa84s2GZCTAuvsR4C3PMv723XEbwwLBWp9SohdyKklQr 5q/f9yYCXlT6Yn6StUOZv8FwK9obMhKAZO8JTbgOBDHu4eA3w4ID/RRpNQeOewKXrdkP WRh0vKK7ft7aC285NJvtoRl5MQ3Wg8x767gqkTLRwYHNuxHat9rVzO/3OnuEPZU9jFFL uSCdKlS1efLkGXpalxJ4Oa/0xZ4vVkVclXYRWMkOp3FXukWaFXzg/sepydHBSWypUirO kXRpXhVZpFLPywUUrRgAnF2W0dxB+P8auBWEtemqz2lr/kT0zfZn9H25svLeNTWXG9ix Y+sQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si5475149edy.576.2020.07.02.00.43.36; Thu, 02 Jul 2020 00:43:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728019AbgGBHnX (ORCPT + 99 others); Thu, 2 Jul 2020 03:43:23 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:39575 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726892AbgGBHnX (ORCPT ); Thu, 2 Jul 2020 03:43:23 -0400 Received: from mail-qv1-f42.google.com ([209.85.219.42]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPSA (Nemesis) id 1Mspu2-1ixqPh1Oh6-00tBVz; Thu, 02 Jul 2020 09:43:21 +0200 Received: by mail-qv1-f42.google.com with SMTP id t11so10176939qvk.1; Thu, 02 Jul 2020 00:43:21 -0700 (PDT) X-Gm-Message-State: AOAM5306ZvxhX/bLnZa4wS6/FC/NNK1Yd9+5joj7qfv4+Vft2E9qV55E X0VgqroeitniO4d3Ys8g5JLVD8MRBvTUqOUYJew= X-Received: by 2002:a05:6214:846:: with SMTP id dg6mr27261409qvb.210.1593675800127; Thu, 02 Jul 2020 00:43:20 -0700 (PDT) MIME-Version: 1.0 References: <1593656074-10092-1-git-send-email-Anson.Huang@nxp.com> <1593656074-10092-4-git-send-email-Anson.Huang@nxp.com> In-Reply-To: From: Arnd Bergmann Date: Thu, 2 Jul 2020 09:43:04 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V4 3/5] clk: imx: Support building i.MX common clock driver as module To: Anson Huang Cc: Dong Aisheng , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Peng Fan , Abel Vesa , Aisheng Dong , Andy Duan , Daniel Baluta , YueHaibing , Stephen Rothwell , linux-clk , open list , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:4l9HVnORHmFg+rFYMLql0o/rt0r+WCLGPsIMFgn65+rCL9EHkfh n3BhUbHqrTn6F5aJU0BHU+gkBUOzwlMtjEg3e3lkgXWaDcixik5vNhlOesQtf2a3u8ezaSJ qE835qSgzKuP9CP1Y1k/RrIEHG69eauMG2sAr30nvNDectnI/ShmBbfMRbOHhA/ZES66f0/ 3dd2pZbathaY/jK77VeAA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:blasO2qJ3YU=:hJC7xmyx6WEz6hK+5VHXPw h2BkP2DApVDukpmEY304y9UiO66RFOpgaqSKzN2xjlyVeTPOJcJXk+ZGKAr9ao7/LSs5yExuh 75RAyX7yUWQ5IYBo/TKirdf9Gz6YeTRJk4tAhZaF8fzofRkQZmLuhsD/ciKSVFk1L9INCCLIa gmOlcIETGTJ2JCaTkvCGdNx/mHjbxV0A1ycm6x3rDGXzp9XtJPCP6vxKVfs/lwfynpBIeQSSp q1tYsUWyswJjnOzPKHP6Ugww/GNLQQFfAwTN98p0EvKeqFve4mqBgVBmkLxzHENsxPN4Ptldc vwB8nwg9WMOno6vAiyHVXjnUgWSR+jseU5sh/Y0owYiARWGYhV4glJT+nur2RIkmr+BuDGG0o 35N44WQv7SLhjtuu7dlpdYlVNKj6z7u20DjeMKQPPEkTTIjm4ObCja/1eIASmq4YFz3YbTB56 PUN3Xw8AZBN4pS5ZxWJdWI1yZL/2xIuTT0V9frlPKtYgYKaamBc7N8Pr/1udG0FPFbBmHUJo+ cug6WuaYuBgjHxnjdcJZSpEAv+f0kL7zEFjz1yTfES8lEZFcOEd0nMzWD+68k20EYPtEIJuo6 FVg2LIO1HuqDf45GwiBLAP3yDCXVM92HJbF8f+HUzNAfSpWdF1kOCkGmsGCksEp6I+KhDz9P4 jVNZvl/xi95bPOOzzhLYp3+5oWc1fnHDuqBCMbD1t8YgpyonIt+WOHawWk1RXshL8BRYgNA1/ MDaQ+2hj3dxIHWojOe7MHoBfwg2y9QB59wC5BKEWRvHLvoAQoLlKMzoKqv428T2M2eHWthUDE rMU5ZBuD3YbuUbrQ+kNaW/tSFDb6xR5j8y6zsPhJusGASxYqSc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 2, 2020 at 9:12 AM Anson Huang wrote: > > > > The question is whether the #ifdef check in the header to test for MODULE > > (only calling it if this particular soc has a built-in clk driver, which is sufficient) > > or for IS_MODULE(CONFIG_MXC_CLK) (call it if _any_ clk driver is built-in and > > the function exists, which leaves extra code in the driver but is a more > > conventional check). > > > > So you prefer to add an empty inline function for imx_register_uart_clocks() with check > of MODULE build? Yes, I want the empty inline stub, but either symbol check would work > Even with this, we still need to add MODULE build check to whole block > of this earlycon uart clock handler in imx/clk.c. Correct. Arnd