Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2884843pxb; Mon, 25 Jan 2021 00:51:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNRtP1rR2OuQIpBl+u4t0vrj3P91AlVVvuNaTTJUV3S/gB8AzFr1JGucP7t/ZjF5vPOT/S X-Received: by 2002:a17:906:c0cd:: with SMTP id bn13mr225713ejb.368.1611564715851; Mon, 25 Jan 2021 00:51:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611564715; cv=none; d=google.com; s=arc-20160816; b=Zm6vuszAGB0F4FSNjcwehwg+pA2eEwOkCn3AgLCiVtYYLhb4Q9kcUMb19lS7fSLnz7 Z2GExYd6F0j7x9Kv1Z36KIaG2P0XYqM0ZlVqB8vHq4wOOMUk5s0kvBnHOAdU5hO04tHw on5rARyCvNwdzis0WonFDoguMc/VMMPoIDoFkse3KqfAuuWDGaY4iWy1W1AVUoaGHSl2 rp7+rveyx4nl2hX5VUaWFmep0bWnddladMWMxoY3Wb+uKkAnMuv4m1cIdKDu3RHwR6Qf It1fym3qsDXPZdzOO5aEgXTJsnto9XNhV2XUoSyUYvcdN/TyT7Fsw5AUwYZLCeMKElF3 PVTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mZo7aKwXK5deoAcrsXLP1GP5WkzKfPSS28ocvilrOE8=; b=eguq4PG6aEX4faOFQl3ogC97v+oFM8FeUKo62pv/jgY9FBUsch40RfCq8BiGUxpcAZ CfK5mMZThKWGKJtqP5Fl/0hNgjRaitjcy10a5hnNgSgoV23dAgKrEs649z/W8VNN7ff6 VIU2GZl3ABCiA5P40cFdFuGuPRQycQZRBzvhvJBexLFz7lmb+OXJ1//J8D810e5akOgo y66S54Sltdrqo0aXahDniNpYkwgL1JHI9JBm/fWsWbitLtgvvxNrg9iNiggjXbmcYNsp f8jSmd1TNplkwHHeoIUr5iZVhcQ/X+EgwxPO0eBedqgOMEVALhcJOXcsPFHx+xXHohzH am+Q== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o16si7063471eds.116.2021.01.25.00.51.32; Mon, 25 Jan 2021 00:51:55 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725779AbhAYIrJ (ORCPT + 99 others); Mon, 25 Jan 2021 03:47:09 -0500 Received: from mail-wm1-f43.google.com ([209.85.128.43]:52802 "EHLO mail-wm1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbhAYIl6 (ORCPT ); Mon, 25 Jan 2021 03:41:58 -0500 Received: by mail-wm1-f43.google.com with SMTP id m187so9796027wme.2 for ; Mon, 25 Jan 2021 00:41:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=mZo7aKwXK5deoAcrsXLP1GP5WkzKfPSS28ocvilrOE8=; b=JQGfDbg8HrojNONppBEkR4ON/YxepZQv0TOPaxYSHUbEa6F3h8N7vJRBU12h4ipFfF /GGDGa4XXbday2fDFmmn9z1Voyyr9lWkdvRxFfzS1L6m7ORUUFJr0w17H3041ya5m50S P5PWxywP68XyThFzy4LznATDL4hAra9LlYi+XttvHvpaCrnznea0KOxXA776XadfJnQ6 wbKQIBLcOiSC4pjyqlYVdWMRV7GGLbgI7lY2n4ysJn1Au/yal9oOfKeoth0Pft+lvBa/ PLwzyJ2p8+t1TnAWG8ftOSHF7p7+VvMR0+oKJSl5bEXJiftE4yuyBiWSlO6A9oBqNsgp TOww== X-Gm-Message-State: AOAM533QmKlYlqraCYngMcEc9Xpn9GnlmMJcE1Xa9DV/byd/+qwbLgPY PhGIIUIuQFFElRsA+ZPB+j0= X-Received: by 2002:a05:600c:2255:: with SMTP id a21mr14774541wmm.79.1611564053570; Mon, 25 Jan 2021 00:40:53 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id n193sm20346055wmb.0.2021.01.25.00.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 00:40:52 -0800 (PST) Date: Mon, 25 Jan 2021 09:40:51 +0100 From: Krzysztof Kozlowski To: Yong Wu Cc: Matthias Brugger , Joerg Roedel , Robin Murphy , Will Deacon , Tomasz Figa , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, Nicolas Boichat , anan.sun@mediatek.com, yi.kuo@mediatek.com Subject: Re: [PATCH 2/3] memory: mtk-smi: Add module_exit and module_license Message-ID: <20210125084051.ipgeu2ksucdag2u4@kozik-lap> References: <20210121062429.26504-1-yong.wu@mediatek.com> <20210121062429.26504-3-yong.wu@mediatek.com> <20210122213427.mwjyjn2wsgnko7mk@kozik-lap> <1611557381.3184.21.camel@mhfsdcap03> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1611557381.3184.21.camel@mhfsdcap03> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 02:49:41PM +0800, Yong Wu wrote: > On Fri, 2021-01-22 at 22:34 +0100, Krzysztof Kozlowski wrote: > > On Thu, Jan 21, 2021 at 02:24:28PM +0800, Yong Wu wrote: > > > The config MTK_SMI always depends on MTK_IOMMU which is built-in > > > currently. Thus we don't have module_exit before. This patch adds > > > module_exit and module_license. It is a preparing patch for supporting > > > MTK_SMI could been built as a module. > > > > > > Signed-off-by: Yong Wu > > > --- > > > drivers/memory/mtk-smi.c | 10 ++++++++++ > > > 1 file changed, 10 insertions(+) > > > > > > diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c > > > index e2aebd2bfa8e..aa2a25abf04f 100644 > > > --- a/drivers/memory/mtk-smi.c > > > +++ b/drivers/memory/mtk-smi.c > > > @@ -597,3 +597,13 @@ static int __init mtk_smi_init(void) > > > return platform_register_drivers(smidrivers, ARRAY_SIZE(smidrivers)); > > > } > > > module_init(mtk_smi_init); > > > + > > > +static void __exit mtk_smi_exit(void) > > > +{ > > > + platform_unregister_drivers(smidrivers, ARRAY_SIZE(smidrivers)); > > > +} > > > +module_exit(mtk_smi_exit); > > > + > > > +MODULE_DESCRIPTION("MediaTek SMI driver"); > > > +MODULE_ALIAS("platform:MediaTek-SMI"); > > > > Drivers do not use capital letters, so I have doubts whether this alias > > is correct. > > I didn't care the upper/lower-case. I will change to lower case in next > time. Then why do you need the alias? The name does not match driver name, so what's the purpose of this alias/ > > MODULE_ALIAS("platform:MediaTek-smi") > > > > > Adding all these should be squashed with changing Kconfig into tristate. > > It does not have sense on its own. > > Thanks very much for review. > > Only confirm: Squash whole this patch or only squash the MODULE_x into > the next patch? This entire patch 2/3 should be with 3/3. Best regards, Krzysztof