Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1252981ybt; Thu, 25 Jun 2020 01:15:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypk3wA+kLVXilbJNQJ/2Qn8Bk3doXq7iTHUv+Ymz7yCI5xxmFglgNxoCAH2gVEao17I/Zv X-Received: by 2002:aa7:d28d:: with SMTP id w13mr31044838edq.336.1593072940493; Thu, 25 Jun 2020 01:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593072940; cv=none; d=google.com; s=arc-20160816; b=nHDIukcMYI+cS44lrAm727nlJ9W78s6Jb/iYUh5NiMDwKtyCCJyuzT+Z+dZmDQmoxs Y1ZDFT70G1x7BQB5uHYTtpSjzAboBa0wFjl6jiKdNN7hOjbQuKSQBPoq1oYGzVBFuyT+ +Y/D22utNGyZ3cmo5LfOiofeXoBVZVB+HdlvIQ1IakMx+yDdKbiNrLlkOeWK3V8jF1rg O8iMqEc5UJf9gXQxAhySlXzYnJX3jsv9t4wugsvoRNKYPbtfQY5QZ8ULLRuFOIe7xlFX LPyqV7wC5/J848brg/AiQzndm2son7s2neAQUrgROrPS0neaiC4tK5FxcR+JL178Xp1a YdJw== 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=3mnUES5nqSkKMYPUJ81OP1n5Fcd74voQvNZf/D5Cx+w=; b=EeYBC0TF1jPCXP2E3kGy3OUJY/c0tf3bHRyx0tvHV2mBtUR7CZwivLwCkNlKt72NOf kOaKL7dHZqzIn7kEJrA2oIMAg98Gla2TkRDoelzc/GEUwxwPFPJ/6yucWfzIJn5V6P44 V0BD5yKNe1sxcjZ9ZHuEHMTjDbT6d6CVujKIHkOCpLGSDCAJe6EWWy4i9kZsS0OPmcKr vLdrkVGQSWY8FF/PgMD4oaL+us9Ci/bPueHVGSI4G2ryY0Okg4Ne2PsgOaSCUjEH1fE2 omvmfwTip/PBd7oCdFV5xvhw33vkABWi+BHhpfHvDv9RAPuEobekcdixTcOIBOCic0CI AShQ== 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 p6si7626040edx.295.2020.06.25.01.15.17; Thu, 25 Jun 2020 01:15:40 -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 S2390528AbgFYINR (ORCPT + 99 others); Thu, 25 Jun 2020 04:13:17 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:34269 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726930AbgFYINQ (ORCPT ); Thu, 25 Jun 2020 04:13:16 -0400 Received: from mail-qk1-f172.google.com ([209.85.222.172]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPSA (Nemesis) id 1My6xz-1iv8kf3MyN-00zTAH for ; Thu, 25 Jun 2020 10:13:15 +0200 Received: by mail-qk1-f172.google.com with SMTP id e11so4550529qkm.3 for ; Thu, 25 Jun 2020 01:13:14 -0700 (PDT) X-Gm-Message-State: AOAM533Rg+6Tnx7Ptv5MGyRAbyh2nv/p0t9dJgMfFsnbXuZ8FJHEynDv MX0KwHxkPFCSpf4QVXm50k+/A+oi4/C4EI/z+9M= X-Received: by 2002:a37:a496:: with SMTP id n144mr16346478qke.286.1593072793699; Thu, 25 Jun 2020 01:13:13 -0700 (PDT) MIME-Version: 1.0 References: <1593044164-32362-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1593044164-32362-1-git-send-email-Anson.Huang@nxp.com> From: Arnd Bergmann Date: Thu, 25 Jun 2020 10:12:57 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH V2] firmware: imx: Move i.MX SCU soc driver into imx firmware folder To: Anson Huang Cc: Catalin Marinas , Will Deacon , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Bjorn Andersson , Leo Li , Vinod Koul , Geert Uytterhoeven , Olof Johansson , Peng Fan , Dong Aisheng , Daniel Baluta , Franck Lenormand , Krzysztof Kozlowski , Linux ARM , "linux-kernel@vger.kernel.org" , NXP Linux Team Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:cQde4KPxtx/TpxlseTBsNpVcQ+r1G5tV+dKJec5iKpQlbvTBUC2 ruItMWeuKhIFvaNESqLvg4b1rTX3QnIl9KXXF8Cq/beIuvmCGib0VTyV7xYkYY+C892UImk Nn2bn6UZG0rofBasJkRvZzYZD2Tzn8Xwq8jrRuEazhBns8E+U6WE6Sh8CNKJFyoDnPdxWgA gMteFxqxtEzF+6GvARuFg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:J2IrnnD4ATI=:GQuCxxa7onu8ha/QgbkYKZ L5jJGrKoIksO6H/IpLKTL/n8MAH7VJR/9Bh296W1LZ9Q2p1LM2v4dFKEktIKrfpN3/T2YkyPq mtzyN78Vk5Pcl9NNdcjBuzgcdCu3RAHnHAyJsed6Yqz5ikqUb6Y3XnMI9cqVY93tAyIaxH7QD +293d8KHjTpd1fFgzw/WA79ODkGNN5CD/n+sIN1VmA+d4MkL2N9bPwRTh3alYVlc/e7QQ+P5i 6rTr4GA5FAurBzldlqzwwLBnUv2DJwpZa574lp9urfH/iVlGcMDrU3m0JXSIy08Gw+YrR2ZPy ecWzr9jqaTv8J9WJFx1Ve8PoiMayyzutmkKN1T6OsLmVrUQKC+/A/mTfA3eft2ZaxMVKHkxN0 yx2LRWt4SXfdJw/2Emz4LlQ4AdZx3L6zMiqOj2kMimoAdKdsSIjeASnqsdTqvzvqhv+6bxhXF bo99LBLKdQZ+xb89UvzhF1BKtZ3nGc8R9rjwYVVfWKt8uywlRl//YLNYPAcNKfcvURPFAReZ0 nHB3FJungkOQd3hpTEergKgRDiMwq4nNAxSG+dcqPf18KEX6c4yIXrsky3RRu2o6fLdq7fl3C P5bt12bcjhV2/WSkDEfq1Tm7+OuLnvO5vm0c/CADFP46EpdsAcWWal4LmPaByIlX/n4V2rUCP HvtC95QKzg2oHkN66jFB/YC/1C6+YWCRaILnEw23OSzuhqP0V37nkSCXD0iIPcXny7B41TpvM +O1QJ5houfrFu3M+cTC//+EtBp1k/IVUDR+ELYHKqxzT3GfE3wkFjJdNb3U2t+nOfU+Sx3vRS K5gIh8skVdfGuDYtq8s0pFl/v9SqQLtBA22+3eo8w/qSxsLfwc= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2020 at 2:27 AM Anson Huang wrote: > > The i.MX SCU soc driver depends on SCU firmware driver, so it has to > use platform driver model for proper defer probe operation, since > it has no device binding in DT file, a simple platform device is > created together inside the platform driver. To make it more clean, > we can just move the entire SCU soc driver into imx firmware folder > and initialized by i.MX SCU firmware driver. > > Signed-off-by: Anson Huang Looks good except for one irritating issue: > index 17ea361..b76acba 100644 > --- a/drivers/firmware/imx/Makefile > +++ b/drivers/firmware/imx/Makefile > @@ -1,4 +1,4 @@ > # SPDX-License-Identifier: GPL-2.0 > obj-$(CONFIG_IMX_DSP) += imx-dsp.o > -obj-$(CONFIG_IMX_SCU) += imx-scu.o misc.o imx-scu-irq.o rm.o > +obj-$(CONFIG_IMX_SCU) += imx-scu.o misc.o imx-scu-irq.o rm.o imx-scu-soc.o > obj-$(CONFIG_IMX_SCU_PD) += scu-pd.o This makes separate loadable modules out of the driver when CONFIG_IMX_SCU=m, including the badly named misc.ko and rm.ko modules that might conflict with other modules of the same name (module names are a global namespace for modprobe). The way to make this a single module from four files is obj-$(CONFIG_IMX_SCU) += imx-scu-mod.o imx-scu-mod-y := imx-scu.o misc.o imx-scu-irq.o rm.o imx-scu-soc.o > +EXPORT_SYMBOL(imx_scu_soc_init); Consequently, there should not be an EXPORT_SYMBOL here. Arnd