Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp427570ybt; Wed, 1 Jul 2020 01:47:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVAbHoXbbyeU34LSekRQr+aj24GZx3CscD0FQfD4kIMfLN3sfmxDWUeSE/AZtjyKTZiC6D X-Received: by 2002:a05:6402:2c5:: with SMTP id b5mr14484266edx.316.1593593220050; Wed, 01 Jul 2020 01:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593593220; cv=none; d=google.com; s=arc-20160816; b=GUIdc6kONO9jSpO5VwOUTQBbFsVDgcXoPJL42blcGzRdRPmReRGuqEatG1bQo4m6IO +qsRxoMcRlhQ7F6G/NLq/y24iVBKAZiYF0TCd8DCYqOLkgS1ZfB3ddINL+MaCUpk7IDz dFfmeZu1nc7SDZbHkl8r7HKkHjYPOoqBy474VgPuU1dduyand1uS543FsmnZi4i80HER A0CszrR5pgq7FgSCnXB/A5B1vC8nQqSa9uriRUkOsMfrDRg1JcBYp8fY+OzSW2MCH6qa J8fRay+KBRkaMdH0tat9txmAwR1HG3XVUXt/C6jiPwSZlD/vXBTsLCzVfKBNcKgWrYUv 1kAA== 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=5yaRqlKpnIXsjIBQ8TP8QryF+u01j3uHRwAhIhLYsGM=; b=DK4X+0xr9C0W4319vdAxCgcG5K5MJNpVbnhJad6wQKyyJMEd/5DcSeA6Be2hHVfs7W kHwmC978k+wB/uHBKVE8hehER9JlJZXAXlJaNWDo5u3Gu41OEllxMCHdBvD3FgUTMS+0 LTf1RVvcNWSBgKdme+Jmidwd1mdh5D9/3+md4V5C/acDoho7bRhwWwol4Jvp1oswQIw4 C9dAR2LJGNjZXsutCZsZlxvuywBHrl0JUMnVEzYN9d3seQFJ61O5Mq7OITvy0i4UjWYY Z/qDY/kC5A2pz5aBbKmYgiV4C3ZtEk2ZIjPibKzahI0VBEV9B+JI5lUxbZv0RnAWq229 4BMA== 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 t28si3408134edc.97.2020.07.01.01.46.36; Wed, 01 Jul 2020 01:47:00 -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 S1728607AbgGAIq1 (ORCPT + 99 others); Wed, 1 Jul 2020 04:46:27 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:54293 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726670AbgGAIqZ (ORCPT ); Wed, 1 Jul 2020 04:46:25 -0400 Received: from mail-qv1-f49.google.com ([209.85.219.49]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MBUuV-1jfImW2uUR-00Cx67; Wed, 01 Jul 2020 10:46:23 +0200 Received: by mail-qv1-f49.google.com with SMTP id a14so10627617qvq.6; Wed, 01 Jul 2020 01:46:23 -0700 (PDT) X-Gm-Message-State: AOAM532r1B6zxfZAQF81TX/UCunult4L7qpb4xqfKCLVivWHZAz1T1wE PurKoXP7Kqwsg476oXmjWtFmZsGk+Un+XDEXUSM= X-Received: by 2002:a0c:f802:: with SMTP id r2mr23070520qvn.197.1593593182516; Wed, 01 Jul 2020 01:46:22 -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: From: Arnd Bergmann Date: Wed, 1 Jul 2020 10:46:06 +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: Dong Aisheng , 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 , Aisheng Dong , Andy Duan , Daniel Baluta , YueHaibing , Stephen Rothwell , Al Viro , Linux ARM , "linux-kernel@vger.kernel.org" , linux-clk , dl-linux-imx Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:+hKZeAFfQa0vbT+EWR/f+6aorgQODV3irX6ufAec/hFqiRP6Osc VfimTVjs8g/xCPzuRTNtEaN16lRCyAJEETewREothhx1ozl4bn4DUvdu9ix7lAiyzKO7vPi BlN0Yn9jWm8IfVVX0wZK6coKQjnx8tebHpPfv+lPQrOejJB82KAy06zWZP1O0vUIm4bAceK ExYVKUPhfwuHfS3qQEqug== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:LqUUW26TEkY=:zKLbRT6/obq9HC9AKiLiYk jEzWzVElc9qPFZoCBzwOiYNqyRZ+Tk1lxO27tKnXD4dwsdwFhUTXkRGxfUcsRpcsPOYvDalk2 Xp8ifYC6t6VOE6bwsrLHiDx2HE02hAlyenuHfNHKr1Ksappjlb6/b4z9oXe4+SPNWNeuYiA9K /HqpNtODiBV5pPFoZrMrAYR3sJ39PL9yj+r5ro89JYOPdb3z8x8IALL9AAGP7LsUk/qezkj2K +FAae/3lAiKr50jqMm+239ql2MPBTUdYMqu3tmMe5PBzFDPaonNryYkg4fFqmHwdQ4FRKrlVG YhUxoAsVaHRZyfcBU6ZVEqL+6njqal2YZLQmoZk0r5FTab247c0QBN7jmGE07e6rU2oYxI/dJ JDJkcT1acieWpyWuoKgFz78sTTpPYf3Tk851wjjqlCt09S+6OR83rtbjuH2TaWXQ/hTWxDE0s aQmEclWbMrUSXj+rLa3CCQ7JTfbUeqtnvZGIo2HuKBqc8Ft0gHqSs4GAs8vVo1LqmThBfCVUW 4x4nqzD5VNp5llJ9tV/dmTtDck7xulsvmp0/5ULsPyI25FkwM9MvAtALKn+JBVrazoffpQct6 fGXxjS2oLAZrlp5YrphtPovM4YoLgL1/0dCBxN9pSUXvH70pkJA9bEEw0lwHAovFV5O+LbfBe yl7dvj55SVRXadknTT0DF01cKiwTMaiTKOY9UXk2h+4DEKvW6AiBz5XWTf+lGjEMgjsHvwYDY uoVshpPpfR/xphInAymn7hffn7B9YN3mJacIP2XatkKDwvID1plthLoGXSxaaB1fPN5JVxbEu bWhZoc5vhq77fjIN459o5SNgeh/I2OLwwL6zdVZM3TVPLDIcz7/sVPqere8HDvaE9zW/K1d56 x5R/ynFCMwv6lF8f3W5u32fgWycKMVLR5FTAaT+aWiFVNSUb4rkBDAvvRovpASW6KJCrSiSIM qZo990i6PQkBPx2QrrWB5V4xzTvd8D6Oeg0C/natBYcZjaRjSHxGy Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 1, 2020 at 9:19 AM Anson Huang wrote: > > Subject: Re: [PATCH V3 04/10] clk: imx: Support building SCU clock driver as module > > On Tue, Jun 30, 2020 at 5:16 AM Anson Huang wrote: > > > > SCU clock driver is a common driver for all SCU based platforms. > > Current i.MX8QXP SCU clock driver will be extended to support all future SCU > > based platforms. > > So theoretically clk-scu.o and clk-imx8qxp.o can be combined. LPCG is > > similar. > > Maybe you can give a try as Arnd suggested. > > > > Do we really need to link clk-scu and i.MX8QXP clock driver together just to avoid some export? It was just meant to be easier than exporting a symbol and dealing with module dependencies. If it's not easier, then don't. > I met some build issues if using this method, the i.MX8QXP module build is OK, but other platforms > like i.MX8MM/i.MX8MN/i.MX8MQ/i.MX8MP clock drivers are just skipped for build, even these > i.MX8M clock config are existing in .config, anyone know why? Looks like the change in Makefile for > i.MX8QXP clock driver introduce this issue. You have a ":=" instead of "+=" typo, so all earlier "+=" are ignored: > obj-$(CONFIG_CLK_IMX8MM) += clk-imx8mm.o > obj-$(CONFIG_CLK_IMX8MN) += clk-imx8mn.o > obj-$(CONFIG_CLK_IMX8MP) += clk-imx8mp.o > obj-$(CONFIG_CLK_IMX8MQ) += clk-imx8mq.o > > obj-$(CONFIG_MXC_CLK_SCU) := clk-imx-scu.o clk-imx-lpcg-scu.o ^^^^^^^^ Arnd