From patchwork Thu Jan 27 10:56:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 12726563 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 229F0C433EF for ; Thu, 27 Jan 2022 10:58:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6No49Yt023f2iBXB5hG0DBc8HeGKoRKKZ8G59f+iyR4=; b=k4Kh9Zr3YYFNWR m456x2BTjYPCIhYZqpxh11PGj1J365obfGOPB43gxMDxy++srlhqf0ExURGBVxrQRiWaR5M9sD2SJ wnaKRYEMlrVcyyNkM4IwMCYynZmFjbdmlB7EZxeAt3Ofsr/gRoHBBwh+LoY6fpXW+VKteSV98f5rM L3d3x8GKp62AQeC+lYlNX/JwdUr16IsGRw91psdgcHLdrvh3GbWXXyfC6yBmmAovZSHTzauC732KO MqNOsmvDrJq97oW+zKdq3nAYX3CTKzvSb/KlyCEq6kKgHmP8D2ncSDBTzqAcRuZQQq7+u87jVUQHy aVa+whtHaT0Q+0EYUPtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD2Sc-00FFyR-Aq; Thu, 27 Jan 2022 10:57:02 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD2SY-00FFxO-1i; Thu, 27 Jan 2022 10:56:59 +0000 Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id EC33BC0015; Thu, 27 Jan 2022 10:56:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1643281014; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OM9n9EPyy+oE/3RIIaQWbjloRnD62PtIiDYWCfnxUx4=; b=XZQSYW874hNWqHuZ23wpVS33bhoxQQn99jKHjojoq6g+3XVJyQ332ZIIgsAGBzu/7bONnX G/A6KzeDzeNuwYMCStoouJSWvjFtClv4lMZiR1wT37ZiUygiWWLIJ8ZVK5E/taIZ7aQCo5 vviD5b0tdCyYJc5f6xVLwoVwmagsczEuzCwO6C3Us/jvEGYbqRgQkp9TfNyZGX1Hd/YEmT cwMqr4yCzG/0Q78flBLY3HIFWWND3nsraYb2uVDIpnwAQM4e4aQEj+SDMALM8vTCs5W+w9 NwureuIIFsg+vuT9vlp+ECii/b9OwbG3DyjYC5i0dtTHbyBPGeQlG4nkclaT0g== From: Miquel Raynal To: Catalin Marinas , Will Deacon , Krzysztof Kozlowski Cc: , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , , Miquel Raynal , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Subject: [PATCH] mtd/memory: omap: Fix build dependencies Date: Thu, 27 Jan 2022 11:56:52 +0100 Message-Id: <20220127105652.1063624-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220127_025658_279133_D2606009 X-CRM114-Status: GOOD ( 12.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Omap2 raw NAND controller (MTD_NAND_OMAP2) selects the Omap memory controller (OMAP_GPMC) for the ARCH_K3 platforms and for compile testing. The Omap memory controller (OMAP_GPMC) depends on OF_ADDRESS because the driver uses of_address_to_resource(). This may produce the following warning: WARNING: unmet direct dependencies detected for OMAP_GPMC Depends on [n]: - MEMORY [=y] && OF_ADDRESS [=n] Selected by [m]: - MTD_NAND_OMAP2 [=m] && MTD [=m] && MTD_RAW_NAND [=m] && (ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3 || COMPILE_TEST [=y]) && HAS_IOMEM [=y] As the of_address_to_resource() helper has a dummy implementation returning an error when OF_ADDRESS is not selected, we do not need to select OF_ADDRESS from the OMAP_GPMC Kconfig menu for compile testing purposes. Nor we actually do for K3 platforms, but in order to not break these platforms we can just select OF_ADDRESS from ARCH_K3 directly. Fixes: dbcb124acebd ("mtd: rawnand: omap2: Select GPMC device driver for ARCH_K3") Reported-by: Uwe Kleine-König Suggested-by: Uwe Kleine-König Signed-off-by: Miquel Raynal --- arch/arm64/Kconfig.platforms | 1 + drivers/memory/Kconfig | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 7d5d58800170..1a0d4b575b95 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -123,6 +123,7 @@ config ARCH_K3 select TI_SCI_INTR_IRQCHIP select TI_SCI_INTA_IRQCHIP select TI_K3_SOCINFO + select OF_ADDRESS help This enables support for Texas Instruments' K3 multicore SoC architecture. diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig index 30bff6cb1b8d..241f0925cbf1 100644 --- a/drivers/memory/Kconfig +++ b/drivers/memory/Kconfig @@ -104,7 +104,6 @@ config TI_EMIF config OMAP_GPMC bool "Texas Instruments OMAP SoC GPMC driver" if COMPILE_TEST - depends on OF_ADDRESS select GPIOLIB help This driver is for the General Purpose Memory Controller (GPMC)