Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3025181ybt; Mon, 29 Jun 2020 13:13:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJi37C4ctcr+ZXYSNQZHESD4KgO4FKkY1D1vVAm3toe3rcI/E8+alv16BdFy42nBScCN6H X-Received: by 2002:a50:d513:: with SMTP id u19mr18834556edi.241.1593461611212; Mon, 29 Jun 2020 13:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593461611; cv=none; d=google.com; s=arc-20160816; b=N3DK1O9LIzTphzq1ACbZpA0TSLMPDMh4sPSziBmAGVFQmFcxONiaBJUqfblZn38sEk +90CAgZ0io16EFNBUGYDMIEnkCIGVEG6WZ2WW90QbL1Pxd5k58pE2UvDnP4R4j2PJQGn E6OJYZdugNixVKbWMSEm76N7UpVim/jCE8KIU+UpfQaxafMEWXFoN4TP5Rz64/tLCBkK mSbalqr/+xHWgsbB60lM7BZh8dBOhNFqY0iagAthc4ja45qHy044uZ/iEH11j0iR+T+o PhFISz8WHQWDymEBPwQKBSTZt2zzeo8lI8Rmq3tNJSM0iIHtyg5JMP7n0gS2QqhwWfP5 79mg== 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=IwzEOcWg9GPTcElH3JmkNIdD9nntsEcyFXOwBQcz+LY=; b=aJ3+E82ORQ8jrlSvPLno+rc98844EE3xS23+xqicEU+PUaH6+f8RG7a4eygMM/Dt7G 0A+nh3RYlaBXbXl4glycKVYFbK9xUdLkgPai7r49p81Qj41btb/O9q5sxKA3plREMQF7 emV/BsWJgO4z+xCoxwo7obVgndq2MpYe+yiDtm5m8XVBcglX49oQzQ5lA/iEnXtfbMbx 0oIOjcPPeUKKAj2TVlo7DmJQYvBBps7lNfZL10zNRKV9E68IZKyNxHgO5IdcJfn0aCBU 66kRRgUkEDJqipNKd+qHa3E8VJj7ABrnC/IUvlPgP8CjdJbk2CYNKmSM03+5KQixwh+V nJCg== 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 h17si346390ejd.655.2020.06.29.13.13.08; Mon, 29 Jun 2020 13:13:31 -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 S1728239AbgF2UJ5 (ORCPT + 99 others); Mon, 29 Jun 2020 16:09:57 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:54907 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbgF2UJn (ORCPT ); Mon, 29 Jun 2020 16:09:43 -0400 Received: from mail-qv1-f42.google.com ([209.85.219.42]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MeTwa-1jHcPb2lSG-00aYIt for ; Mon, 29 Jun 2020 12:41:59 +0200 Received: by mail-qv1-f42.google.com with SMTP id d12so7406122qvn.0 for ; Mon, 29 Jun 2020 03:41:59 -0700 (PDT) X-Gm-Message-State: AOAM531IRWmpD969Z1ecFt2fo+Ss3QMOeHBQjkbNU3Ym+gLRpOjicqJk VMOadaFq+TO2h40w2V+3/6qXlG7nAEV5PXMwMLU= X-Received: by 2002:a0c:a992:: with SMTP id a18mr5722120qvb.211.1593427318599; Mon, 29 Jun 2020 03:41:58 -0700 (PDT) MIME-Version: 1.0 References: <1593425623-31810-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1593425623-31810-1-git-send-email-Anson.Huang@nxp.com> From: Arnd Bergmann Date: Mon, 29 Jun 2020 12:41:41 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] reset: imx7: Support module build To: Anson Huang Cc: Russell King - ARM Linux , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Catalin Marinas , Will Deacon , Philipp Zabel , Stefan Agner , oleksandr.suvorov@toradex.com, Bjorn Andersson , Leo Li , Vinod Koul , Geert Uytterhoeven , Olof Johansson , Linux ARM , "linux-kernel@vger.kernel.org" , NXP Linux Team Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:NAY8EhN6ws1T8Pazpdgrd7VWDeFxjiun8491ZtLnnw6d9VxKLS6 8DhsBQstA4iN6jv0o/5SRRp03jhV6SdWjyG1/+7nPRFlpPQxXFyZUG9c0dsABx1dN9NHUE7 6Kwyb9j1hiysI0AZr4d9AtFC0uMX4jt+BHCaAWvPhd3mRjxPDpkipH6/oI91JpkMLGu6m/w 37TCB8UYsUgDcuf9b40eg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:o9rlWcobsXs=:RKRYtyb7Zd9/IfkC2YkpQq 4UAIsigLxcA7tdPJinfrtehW0L+FE4cfx8LzBLiTEFbbPrwsRgYeJKGoYBLcFvk/zOOzt1R/U YMORbeKYrI6yR3hH4ISFevBnvI2VAQr8kvF0tQGlSHUTwpEoRf1dpz9bE8uzNnmAyX0306nJa xK7ao7r5tjjpeXklY81NYsLJKa6FR6LftjAaeoKmbuiJ72f4WDJ/hjgW5+9phs78cwZS22aI2 xaruYZ4XwcOXyF+PulviQw54SM7d2vC/NNLK+rmD9OGvM+LTqEkKxL3eJOmWNF5qzy9J4DHaW 7Rd1hEfNMUzgpmjbM2Vne9WCF+zb6bCJwbT5ox9XTrxgteJnl8StZZ6Iws/IkEvfooNKj8tXq jrmVBbhDiNDekt8fK/9CJOVTV95HIHMPxnfLoaEmOq56P9Jd080nK5nJW9m/ZvVvPJEzIf0Lc gOWnzBdQTJHmDZBaT/GEXyJBA2SEU6tX4ro/XoV6E0pUK2Z+PWQ2k6ARWeU6/CMa03vM4iQgs u8T1fo+476MA1ImYGQD/c7dzUoTzNnZDqG3+ze6VqWJDde05N66IXJYepGh3UVMR0bNPdV8aE 4teYiDIlAa+hOmtxLD5eEjS5BBiP06rZdPKJrjB3Myaw3GOH/cPfVAAMgU0nvRLEAT78jyoCl j9A9F0AXRf87iUbDOmX/w7W/U/tXvhkgrXewCLHZdCahC9n0YE9cclSTA1eFsjowIxY23GfLo lGKAU5XSRkph2xcAwOMrTVHM4p7RBus+0Y3u2IOV4OMi7WulqxCoU8fs1rgl4YM2M4Vchf2Rf Dikl0x5HPC78q8zktJu3E3SATVESHsuaBSQIJq9v0/Fqi/zfJZObwpVLIuS7Ug0TGDn0SXW 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 12:25 PM Anson Huang wrote: > > Add module device table, module license to support module build. > > Signed-off-by: Anson Huang > --- > drivers/reset/Kconfig | 4 ++-- > drivers/reset/reset-imx7.c | 4 +++- > 2 files changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/reset/Kconfig b/drivers/reset/Kconfig > index d9efbfd..033ab60 100644 > --- a/drivers/reset/Kconfig > +++ b/drivers/reset/Kconfig > @@ -65,9 +65,9 @@ config RESET_HSDK > This enables the reset controller driver for HSDK board. > > config RESET_IMX7 > - bool "i.MX7/8 Reset Driver" if COMPILE_TEST > + tristate "i.MX7/8 Reset Driver" > depends on HAS_IOMEM > - default SOC_IMX7D || (ARM64 && ARCH_MXC) > + depends on SOC_IMX7D || (ARM64 && ARCH_MXC) || COMPILE_TEST > select MFD_SYSCON You are dropping the 'default' line, so the driver is now disabled in a defconfig build, which is not mentioned in the patch description. Maybe make it 'default m'? config RESET_IMX7 tristate "i.MX7/8 Reset Driver" depends on HAS_IOMEM depends on SOC_IMX7D || (ARM64 && ARCH_MXC) || COMPILE_TEST default m if (SOC_IMX7D || (ARM64 && ARCH_MXC)) select MFD_SYSCON > @@ -395,3 +396,4 @@ static struct platform_driver imx7_reset_driver = { > }, > }; > builtin_platform_driver(imx7_reset_driver); > +MODULE_LICENSE("GPL v2"); Generally speaking: when you add a MODULE_LICENSE tag, please also add MODULE_AUTHOR and MODULE_DESCRIPTION. The 'builtin_platform_driver()' should work correctly but prevent unloading the module. Ideally please changed to 'module_platform_driver()' and add a .remove function for the platform_driver. Arnd