Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3057242ybt; Mon, 29 Jun 2020 14:08:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyy7PqlpBUNKknIU9HCSoVK5vP9KqTPRub04j4vW18vmxQpnw6hqcw43uOWGra00UaN2D0L X-Received: by 2002:a05:6402:21d3:: with SMTP id bi19mr19989927edb.56.1593464928691; Mon, 29 Jun 2020 14:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593464928; cv=none; d=google.com; s=arc-20160816; b=aaD+UxF7PKY0HvAq31TD+I4HG5DdHLrEZz7/pZFrngd5ioBYDXUJ3R8fNjxxRu9ygV cqGDPFxMEptp8okMts1iTHneztBkdKiT8POup+0gJ10S8qCsIQ+cZcZ9LaNlbRtfN2av WpWUNQ3BombIvHxZjFVz+UCuwav2XFNAC+SjGxWTlMq5dXb4nsB9h+B4Pqiex0t8SdbD Tz+IKNzpOiDE9h+tTFLp2e72Hi5B/RhcQk7m1DDpMYnMhAZ2Thso6kKdcoXBiKzMExO0 0OuUSATLAFsetinMZbQtDplJGyJhpQABjQP8vd+BdTlBayG2T5f7MIatKIrZmtNMwaJg NFFA== 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=k5FFJWPPVpjllyZJzk9pfwi9qe4Ru5xl6Wqa9zRbmcQ=; b=SdXRHTzg1MXBwf9N/e78gLThZkHtd7yzjyjtrv+cYZGwSbsCaQ7hVFbC9N7AKM9RML I9w6cijO8kmwW2AevbR/kN9NNZ04NIaep8byQ3sntC6o/LQCQt3TJ4G/YD4FVZ4+Cmcf 8wuZzGivuVlTAz12z44W6M6D9CST7sVZ9XMtUmGJOYp7sJHw7aU5lC1vTKk2jrxQFoAW JrZo3V0CzFZ7PPblixdmA5+Z32k2xlx+CQcVySPHsK7K3dwX5kEsox5oRiTgtPWPkEQi /IhXXfPA6Kgb4ynuvz+uEuwQVS5alE3MOpC4AHVoSE74oz41TVu+YTyjh6hrnvG5k5tr rfSQ== 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 y19si350913edv.611.2020.06.29.14.08.25; Mon, 29 Jun 2020 14:08:48 -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 S2388449AbgF2VFK (ORCPT + 99 others); Mon, 29 Jun 2020 17:05:10 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:34209 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731103AbgF2VFC (ORCPT ); Mon, 29 Jun 2020 17:05:02 -0400 Received: from mail-qk1-f176.google.com ([209.85.222.176]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1Mofst-1j0tDQ1GIb-00p4cK; Mon, 29 Jun 2020 13:37:25 +0200 Received: by mail-qk1-f176.google.com with SMTP id l6so14871500qkc.6; Mon, 29 Jun 2020 04:37:25 -0700 (PDT) X-Gm-Message-State: AOAM5316NKX+qTNj84k+pnnAbrw+5/y3z0doj76V5dvfxnvpdvWBZZxA oPBAKeZOuefuW87vz3MvtjheK4d4eFGXVOZNWe4= X-Received: by 2002:a37:a496:: with SMTP id n144mr14536437qke.286.1593430644096; Mon, 29 Jun 2020 04:37:24 -0700 (PDT) MIME-Version: 1.0 References: <1593410042-10598-1-git-send-email-Anson.Huang@nxp.com> <1593410042-10598-5-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1593410042-10598-5-git-send-email-Anson.Huang@nxp.com> From: Arnd Bergmann Date: Mon, 29 Jun 2020 13:37:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as module To: Anson Huang Cc: Russell King - ARM Linux , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Michael Turquette , Stephen Boyd , oleksandr.suvorov@toradex.com, Stefan Agner , Peng Fan , Abel Vesa , Dong Aisheng , Andy Duan , Daniel Baluta , YueHaibing , Stephen Rothwell , Al Viro , Linux ARM , "linux-kernel@vger.kernel.org" , linux-clk , NXP Linux Team Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:fFz7B6CKzVGMcNOoqhEQ+Q6zaYdSbNLhT5RYA3WT73gjqRLfv3G x7gM7jqWl0DIDuUE2yeUfaY4Q6j4CH/U5slfRIMwAtxUWXQG9znYWhecwuWQAAt3obh02PH nAVFs/46bBHnM6Wnkra55WG0vQlGd5xeRMOOtcD4b57A6Q0f2WZfsewPe2YNGRXOYbeUMbq 4+1nzXnBh9Mn//puJkazg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:/dLsAqa9/LA=:J29ItYNPuOs7yVt7PmEaOm 2v2y8akWwVq7bOTB2Vcf4yZ/oIoVEuk8+LJ8hrU0GB7yWvrX98hlqxZgHgLk6vc0FGYY6Qtqd DvvNXvEVI4dFqtgax2DQ4HfCGWxl7/BIzD6ZNHXCL+iwMV4w46fGzneUKB+kG6vKVtrx3BDcY s7hWyqTQIOEt9xiZKl7wT98Kw+LymsQwC8bhhy0nHMeou0VSjC/1LxzmyGDXp8khga3gSZDAd 8xsbNvJDtvTy66DvQuNQjqt4FFchgUe3LqPGtPGW4ijDh9DR/WqN95ArmdQV7p1ngJ/tEeRPT 0kGF5oevsi1jlBHmhfqaXtkCx33l6xYDfFLnUSGroQ6f+V1pthqD28lEwYdV7IxEtgpcCRATU 9maTfhYMr0hf/mxSpXXjT9IZ3vGZlDEa5x8tRwoFh74SQxETdd+1OGUNC1O9sHSbG9N0uJYhE hTz+DPwTWMNDA58pVwlGeyrhT1NVMSHf/o81B1u+iJIAwE22C6bNsHZy5JzaIpipkTd4MTyJM 0UFmaTl0Vhie6wRyYgSkPlpFt1feGcyUkcK0viTTGG4AbxglJd4p3vhKI43BCcsH+0DE03k8s EYvt5+aCpabCeS5Mjec+CxzFGsP9LT9P35VHD4aghfdY451Ua2rhA5djiNgLZFDZjj1LiLus2 ECJ1H0qq51Uq1qZ0AqO1yHUnU5UnmVKLuvJhZ1T9U4yRLydFpTZpibPcIXqeWRAf4MDaXwwYJ J0Jv/l/XojF1cCaIo4YezUaifpf49tasTY9UapyhoddqJ3MMt6RYQuNbE8kLXRLmjVPJMo9NR k6sKxMiz66ma7v98h2709HyGWpfxuA+9aQ7Bhw4KzQajkV45lg= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 8:06 AM Anson Huang wrote: > --- a/drivers/clk/imx/Makefile > +++ b/drivers/clk/imx/Makefile > @@ -21,9 +21,9 @@ obj-$(CONFIG_MXC_CLK) += \ > clk-sscg-pll.o \ > clk-pll14xx.o > > -obj-$(CONFIG_MXC_CLK_SCU) += \ > - clk-scu.o \ > - clk-lpcg-scu.o > +mxc-clk-scu-objs += clk-lpcg-scu.o > +mxc-clk-scu-objs += clk-scu.o > +obj-$(CONFIG_MXC_CLK_SCU) += mxc-clk-scu.o It looks like the two modules are tightly connected, one is useless without the other. How about linking them into a combined module and dropping the export statement? Arnd