Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1357181pxb; Fri, 22 Jan 2021 13:42:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwOlweMKXzVG5DjrgeJbj3ZrssvEwXS+Ymq2N5Wwrlwlg4oMaQUEjSGNNYv4+zba13bBIz X-Received: by 2002:a05:6402:312e:: with SMTP id dd14mr4909383edb.366.1611351745397; Fri, 22 Jan 2021 13:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611351745; cv=none; d=google.com; s=arc-20160816; b=HaLbT5qnRCKF5EPC4UI5tXlBy/W5fKn//cU11EtrVAR29oIIiYau5rasM7SnHoFQtO /nuKcwoef1lzpjLDGC89E9pIoI6W68MXLfbNzAjFoO/GTt1OVkWuhcD3fd+8SC4TYiEI Mmpua8jP8OQbF4BMuLmguifiqc1Q9+9x2kDBam3sGwuN+AXCX5ZTUlUD/SdgTSC09KHH wcXB2urp4hYHtbtDTaPq5DBXnujL1B/5A0QlooSixF9Lsj9ufvidzwEgJFJU/pX4ishr lzFRIl4nt2ZPUZkyTgaWtmHxU82JL94wWXifDYuklVs6Nq6jkpreNKk9wMDyEOW4sUB8 VZMA== 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=SkMtSllHFpUQ8QORRPXzW7+ePTF0623ZPgLmVHJs6Fo=; b=DBPqdnBY9tk7CQNt7IAVd5bA0DCYKIHOormJEmelHU+403sjQWVhVVfWSnCDILq5iY 2bPV08SFyNIndp0ZTj/oz0swHTv82j2DQPfSDIQwd5UNE/dGiCvSQwZvpmxjF3u8e4nD h1JcgQDLenklGOo6QBVMdJeVnE/zqld1TcDRu9JNPXrDtC948P0pmc/Ep3xs4+4imFG7 JdjTiI4NeCMzoDi0pyEhMSdYM3j74UbNKelnApi10N1YocAMoMOmPLqaUf5poaCvZdl6 mJUE1wPhYVaFP5oKP/GaEnW6jyvyLHjv2zjUiCdQ0FVtdgMpT/ernHTjlpZmg0Wnw+IK GKbA== 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 cs10si3331189ejc.200.2021.01.22.13.41.59; Fri, 22 Jan 2021 13:42:25 -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 S1730270AbhAVViu (ORCPT + 99 others); Fri, 22 Jan 2021 16:38:50 -0500 Received: from mail-ed1-f46.google.com ([209.85.208.46]:35784 "EHLO mail-ed1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728587AbhAVVgm (ORCPT ); Fri, 22 Jan 2021 16:36:42 -0500 Received: by mail-ed1-f46.google.com with SMTP id j13so8203896edp.2 for ; Fri, 22 Jan 2021 13:36:26 -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=SkMtSllHFpUQ8QORRPXzW7+ePTF0623ZPgLmVHJs6Fo=; b=JJGD22uq7L/hV9/eYLkdQUU53X/Uk6leUeFVBbZWtI0nrCbYPUNWUwpGPdR3Cj5eyk HxoknqQ9xf5IA642jF7tZPnDurcZTmNcq7z2KMRj7o2MGX0lfK9yamFIQaKVWZAemGpF U7VfFB06/A5iwoMhf1+9XBYeFLGMZe3miocmXnVAxBo/GNYYwbBg0iRYdpHJX60KyAAL BEuSzJpmz2zSq6y+MwtW3m+83VYcjfKKDuuhLp+26cMfdmAB0H6AeBzgRVONburPiUlz 3l/AuMyjV0gOoSMUcVfjAnmni1bnqHnmVnLIT3nnvYyx3KPiduZq6mQ1Q/b4xyFA+6nX X91A== X-Gm-Message-State: AOAM532huOZKzGekbQfQtlquJycZVWhwR1VqYVPX2WaJKJU004de++jl V4tpBo1/YJkUWI2hKvdVelQ= X-Received: by 2002:a05:6402:1ad0:: with SMTP id ba16mr7963edb.287.1611351360723; Fri, 22 Jan 2021 13:36:00 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id z1sm6442231edm.89.2021.01.22.13.35.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jan 2021 13:35:59 -0800 (PST) Date: Fri, 22 Jan 2021 22:35:58 +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 3/3] memory: mtk-smi: Switch MTK_SMI to tristate Message-ID: <20210122213558.qnboqc4obdmipxs4@kozik-lap> References: <20210121062429.26504-1-yong.wu@mediatek.com> <20210121062429.26504-4-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210121062429.26504-4-yong.wu@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 21, 2021 at 02:24:29PM +0800, Yong Wu wrote: > This patch switches MTK_SMI to tristate. Support it could be 'm'. > > Meanwhile, Fix a build issue while MTK_SMI is built as module. s/Fix/fix. What error is being fixed here? How can I reproduce it? Aren't you just adjusting it to being buildable by module? Best regards, Krzysztof > > Signed-off-by: Yong Wu > --- > This patch has a little conflict with the mt8192 iommu patch which > delete the MTK_LARB_NR_MAX in smi.h(It's still reviewing). > This patch rebase on the clean v5.11-rc1. > --- > drivers/memory/Kconfig | 2 +- > include/soc/mediatek/smi.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig > index 3ea6913df176..d5f0f4680880 100644 > --- a/drivers/memory/Kconfig > +++ b/drivers/memory/Kconfig > @@ -173,7 +173,7 @@ config JZ4780_NEMC > memory devices such as NAND and SRAM. > > config MTK_SMI > - bool "Mediatek SoC Memory Controller driver" if COMPILE_TEST > + tristate "Mediatek SoC Memory Controller driver" if COMPILE_TEST > depends on ARCH_MEDIATEK || COMPILE_TEST > help > This driver is for the Memory Controller module in MediaTek SoCs, > diff --git a/include/soc/mediatek/smi.h b/include/soc/mediatek/smi.h > index 5a34b87d89e3..29e2fb8f33d6 100644 > --- a/include/soc/mediatek/smi.h > +++ b/include/soc/mediatek/smi.h > @@ -9,7 +9,7 @@ > #include > #include > > -#ifdef CONFIG_MTK_SMI > +#if IS_ENABLED(CONFIG_MTK_SMI)