Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp784537pxb; Wed, 20 Jan 2021 22:32:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRpaIOShlDyFhC0xEaOlHQbMQOKept3vOcNwUAZrdOjvFgENt/xaq7o3dWUSHNYprEbMv2 X-Received: by 2002:a17:906:1c13:: with SMTP id k19mr8326942ejg.338.1611210728302; Wed, 20 Jan 2021 22:32:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611210728; cv=none; d=google.com; s=arc-20160816; b=r3GaKWr9RRfLhHFzTipcrZof4xfAjNQ/mHHeHWiiVRglHcdkZ/tRGdhZdcsO29WrJg suPbRgeQgJhoe4Q4Wt08M+K6eL635XejcUeCNSSu9z4QK74pnHgIterysZAdikXsgtsE /K24PSnRMB+2sAHFSZuVdzwJgjwMzfIvuHpNKSbEEMpMyqY0zxdQzxepBiXobeTno05q bmeprJ19LpwgJ6CmS1y6Het+fGat+97byZprhKYrAHbYOccl7G2LtZR0cDVU/OZx6qKe 8ks2zEYuEm4pTQSbi6Xtbh6sMsZzeaQUmlnO8lxXvJwuPCdNbK8vuqgK3OF8BSDH6VMl LGpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Vr6XZX54PKb+7BqPf/qeWFZan8ewzda1Y+eQm4pqPtk=; b=j3y24zOyRI7i8qS9D8T9dmnP527W42u2+vJ2jvm4b5zN9zMCXj/G4YeWeZth3p74CO 8AxTnlFJBxIg13tBq7npCjcdX31xh0W6vHJqt3mpnDn3ZTehTM8MtNUNRqVQM4saiNOp L0lvPodVp8n/AVqf76fK1FzE01VpOHKOtTrvOghFR9hN/hEF87FiIxcg4oMID9hitpNG wdKYkB9dT5mnm2vIaPwJ2bTKDyNbGlDJfFCDHPWG3XKqP7LDQM5L5rbbw7i6bI9VJ7mw v1oRJX7jeISOvJbfadqXweK2EYbc5obHoiOay2TrB/OWYtLxWTnfEtn6roGvGEzqQ5cZ RGig== 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd14si1757880edb.587.2021.01.20.22.31.45; Wed, 20 Jan 2021 22:32:08 -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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727108AbhAUG2j (ORCPT + 99 others); Thu, 21 Jan 2021 01:28:39 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:42586 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725764AbhAUG0q (ORCPT ); Thu, 21 Jan 2021 01:26:46 -0500 X-UUID: a347601d477e49238e2e91dcebbe502d-20210121 X-UUID: a347601d477e49238e2e91dcebbe502d-20210121 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 279293618; Thu, 21 Jan 2021 14:25:34 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 21 Jan 2021 14:25:30 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 21 Jan 2021 14:25:29 +0800 From: Yong Wu To: Krzysztof Kozlowski , Matthias Brugger CC: Joerg Roedel , Robin Murphy , Will Deacon , Tomasz Figa , , , , , , , , Nicolas Boichat , , Subject: [PATCH 3/3] memory: mtk-smi: Switch MTK_SMI to tristate Date: Thu, 21 Jan 2021 14:24:29 +0800 Message-ID: <20210121062429.26504-4-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210121062429.26504-1-yong.wu@mediatek.com> References: <20210121062429.26504-1-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch switches MTK_SMI to tristate. Support it could be 'm'. Meanwhile, Fix a build issue while MTK_SMI is built as module. 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) #define MTK_LARB_NR_MAX 16 -- 2.18.0