Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1537818ybt; Thu, 25 Jun 2020 08:17:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrTwzHKaGgF+PDjLxKN9B3TmIaX6u9zEbPnn0HZhabriciMrut92Y1VHd0k82H3pYglug6 X-Received: by 2002:a50:9dc4:: with SMTP id l4mr33345412edk.52.1593098248038; Thu, 25 Jun 2020 08:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593098248; cv=none; d=google.com; s=arc-20160816; b=MvFnN06rIUT+zhmnxYuZ7xK/za5CzopISC/7mUHOwrYKky5Bx56RBG7+QuxyJ5+/h0 k/uNdQKr43RsxdVJEAZ9n16hWrXL8/wOKuDMmWo/zPR90o8lp5I8RBAY57/AerJAdcDw rm/WqYwWTVrbV8rdaxDHhv5nu9q8mEU9hVcY02W6hUmcQPPzmtYBFC8BnDnHzlEWCOsO IdWrY0gkIoBdIynFlL9xgi4PzNp/Qlld1fVQIi0wU3qpW8e9Sm3EQcykZRCKvUwM5z+W iooCxH39y059+QN8siB3oRimMu4mqJIu8CFbqnjjiffUYd4h/fwXDcgI4zoiQ5HEY/7V hkIg== 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=J22D5gxd9FlZRhyoZfR7lSogBSJ8IMtMaI2ryuZQ/eA=; b=JuhS8EAe7Mj+ypueVb3lq8AhSMqa/SiT1DFP+Fs/i3f62nD3AZW1bdFI6nfTVgImy/ HPtsQahjFI3x2dPd0FFKhC17Ce9usRnp280FzZiGiN8D8pDCxcdax5QShdYUEtagS3JU zxHFlhPL4JdZhftXbKCAKck4chttXcD15IoNuc/xiD3f/XFtXiLJdG8qYceoAEeYSAok ckOjGMYc9DMjqNGh+xTmmTWwhkDABSN5NjxIVNdXUIiOIuq1wNutr7GV8UCkgtVEXTgm Xfy3mjJEc/vBMRSC7J7H2ltTrxukHmBAJ/TtV5flvR9pq9KhxJ2BIJHpimDs48V7xzIm /qCw== 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 n15si15162404ejd.527.2020.06.25.08.17.03; Thu, 25 Jun 2020 08:17:28 -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 S2405552AbgFYPPv (ORCPT + 99 others); Thu, 25 Jun 2020 11:15:51 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:51741 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405309AbgFYPPv (ORCPT ); Thu, 25 Jun 2020 11:15:51 -0400 Received: from mail-qk1-f170.google.com ([209.85.222.170]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MQy0N-1jSFOM2WWd-00NvZl for ; Thu, 25 Jun 2020 17:15:49 +0200 Received: by mail-qk1-f170.google.com with SMTP id b4so5586471qkn.11 for ; Thu, 25 Jun 2020 08:15:49 -0700 (PDT) X-Gm-Message-State: AOAM532P8vLbYzuwYyP+qmgHHZz4jDCUNFPBx4sDPzzPqyD9ZuX2hG5W 9Df+Bwfj2mkWNoEZaNBcBK+VlPTSSixt3st6W4o= X-Received: by 2002:a37:9dd6:: with SMTP id g205mr21975447qke.352.1593098148465; Thu, 25 Jun 2020 08:15:48 -0700 (PDT) MIME-Version: 1.0 References: <1593044164-32362-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: From: Arnd Bergmann Date: Thu, 25 Jun 2020 17:15:32 +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 , Aisheng Dong , Daniel Baluta , Franck Lenormand , Krzysztof Kozlowski , Linux ARM , "linux-kernel@vger.kernel.org" , dl-linux-imx Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:26dX5LvC7mCbRHDkcqLoH7zAKXFFBV/RsU6oqax4CibFXcAN6Hl IlhGOw73g56fxy4WY1tHlzfGEvrrthzg16fy6nNrklWI7VvI/PvHW6x4LDVUqLARGuSs5Sa PdVjgkgpw+QrsvnqgGl+h2gl3iWcjUNod+a5r5R8bbF63j050Piqd5ZpRnadgIkJo8+p216 LDoBo6vgX5BVS2pBhrLkg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:4aunBoX7j+E=:zLtHpXlEvtWx4Nf+r26MGc TBqZmYh790BE/QAl90aSOIJBP4Qh4VXvvFGsL9lLWjx71BPcut8Oy3sJBL5DRn88pe2pdgsz8 35KuL3/+GvPbT84BBgd+s0vtCWsJAj/sHNPWNikGae+ihoQn8zRKATgoZSpC/qN6KPzgtwoz7 dEnWbvweJjUA4LfmiAJKulvQ1oft3vNZySqdXxOXIWLhc9nU+/29uvpScOyGx/z9Mf1XO8jzL B4e2DbxRWyjHMNjHGxvWxLgcIuAqxpan1AtSs5SFfjuEZknBoCXA9woC5BgcVyfF5fqg/A4zh StaIIDYLFlp49cCU6AVtWNtebJaVyOY3K9qBpZF9PohMD0I3AxAxWmNiEeC/vFtGl02g8pcF8 xeITH8Xg5BFEUzOZdkqCDVgOifB8tZr/Wvpo7VhZthWys/OaKYn+QL0UBN/8GwxNH2kXYE8Nq kieRVzV+69vC++a/p6zVSDl/y6C+YavrQWG83NGbirAQXoUsxVCJ8eqvVZh07xojr+g180dPg od9KMob7CZaTqoJLvtdNJtwJIx/72ADpaHZ+jxfrhlKFVb8M6z1VfSCd8nNL6hBH4RcFKQVrt i1IfeeGUPW+Skju+aUrYsbh8Mus9pv2BddrjXJb8qcpR07yjxpCTBpp6JKwKfcTNxmHUDUV8P BzHhPR/0KmpT3gF+eLPdo8dZ/JZQ4JICKgF6ZFPzEGtrnflh/HaaSpiCDSxB8pL/Gn+A4spTc 6lP56uGazSV0u6TeCup7KtQhKPZfx7BhDP6DO22N6L6yMkGtLUbjvUgVw8Ft8KR3sxzNf5SP2 bViUYHmyzNpvstB7OhGrd8CjLYwMekNDrmgsPQuBzDiNYB6EBQ= 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:54 PM Anson Huang wrote: > > Subject: Re: [PATCH V2] firmware: imx: Move i.MX SCU soc driver into imx firmware folder > > On Thu, Jun 25, 2020 at 2:27 AM Anson Huang > > wrote: > > 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 > > I haven't considered the support for loadable module of i.MX SCU firmware yet, > plan to have another patch to do it, so do you think it is good to add the loadable > module support together in this patch? No, I wouldn't do that yet. It was just that adding the EXPORT_SYMBOL() made it look like you were trying loadable module support already, and that would not have been a good idea without changing the way it gets linked. If you just remove the EXPORT_SYMBOL from this patch, it should be fine, you can do the rest when you actually need the driver itself to be loadable, and that in turn requires all drivers depending on it to be loadable modules first. Arnd