Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5015204iob; Mon, 9 May 2022 06:59:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxG8mvgC9ZvVOXbSzQ1eQhnDunkAbXyoEAQWKGFnxCeIAYkBX+O21uW41ADukIQJwjN8exi X-Received: by 2002:a17:902:9a4c:b0:158:b6f0:4aa2 with SMTP id x12-20020a1709029a4c00b00158b6f04aa2mr16234063plv.163.1652104793935; Mon, 09 May 2022 06:59:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652104793; cv=none; d=google.com; s=arc-20160816; b=WQBr2JiCjB6e0Yf/Xtdkc+N6AMke+eYXdgWhJfTlXyrFyqpUJA5m+7AMlkW1MpYEzC PdpgVCqR1UsbPvIDnNLn6HNfsqnqxUwIRj/bYp37TVF8OOj0Yp6WlpVSUcwLzdPjyYr2 1G1cthLbVBwqQ2/7Lt9TJEZ70IkXyMitgPAWlCFpzwkaBSCFNhi6JRoHCPYOdOUTwHct 9Tr7djWgCG5a9MEvrO4RwPY7RwH1/bPMwcysaOQPFENcrcYiLIBR3iCxlsb/tdchehQE brpBLt3spm/L9vlvTsvCdKfIE5r4aIl+wUoG5MlVRSgCFOzSRbFhjoi1IJTBB8CfoUKi 7WaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=gqYhRie0i+jvHo+8ZlxHl+obHZxcahuTLQwVUbOzsbY=; b=uIMNm5p4vzsENd9n/7F38dzBySjj91Pstt9C0iIdDuTRoSO1TJI9wnAZzOphV7iErD gRGYsqN/QF7rZindjEM1BTPFih2PtyF4FXk9L8RXag8a3DFHI7o9RroCzIYR3YF9XMwF 2A9SadekIGSI4Leeqpbinv126ycTOH3w6arGhdSI2IK4Gn6jSgFNO+HJQQVuYgV8kEPp HJaQ86SsXmJqWN2u+OVcgh0E0Kupt5tAB/vpmvMXwqgbardyyyJXW3APcdKpKZ4odT38 I0eerKvzsEMp3O3fH2HceikJLwZPMPAclolUzyS31kA74pRDLCkwewL9aWR2eOtM64jA Sn1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id k22-20020a056a00169600b0050a92f7d228si15328595pfc.143.2022.05.09.06.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 06:59:53 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C4AE282472; Mon, 9 May 2022 06:50:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236515AbiEINyD (ORCPT + 99 others); Mon, 9 May 2022 09:54:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236507AbiEINyC (ORCPT ); Mon, 9 May 2022 09:54:02 -0400 Received: from laurent.telenet-ops.be (laurent.telenet-ops.be [IPv6:2a02:1800:110:4::f00:19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3904266E3D for ; Mon, 9 May 2022 06:50:06 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:8886:2b92:63eb:2922]) by laurent.telenet-ops.be with bizsmtp id Udq42700Z0moLbn01dq4qc; Mon, 09 May 2022 15:50:05 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1no3m0-003XnN-BL; Mon, 09 May 2022 15:50:04 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1no3lz-003NJ8-QS; Mon, 09 May 2022 15:50:03 +0200 From: Geert Uytterhoeven To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Matthias Brugger , Chuanhong Guo Cc: linux-mtd@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] mtd: nand: MTD_NAND_ECC_MEDIATEK should depend on ARCH_MEDIATEK Date: Mon, 9 May 2022 15:50:02 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MediaTek Hardware ECC Engine is only present on MediaTek MT27xx and MT76xx SoCs. The driver for this engine is a dependency for the MediaTek NAND controller (MTD_NAND_MTK) and the MediaTek SPI NAND Flash Interface (SPI_MTK_SNFI) drivers, both of which already depend on ARCH_MEDIATEK. Hence add a dependency on ARCH_MEDIATEK to the Hardware ECC Engine driver, too, to prevent asking the user about this driver when configuring a kernel without MediaTek SoC support. Fixes: 4fd62f15afa0d0da ("mtd: nand: make mtk_ecc.c a separated module") Signed-off-by: Geert Uytterhoeven --- drivers/mtd/nand/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig index 2f3e02ab72ede6fa..5b0c2c95f10cb8ca 100644 --- a/drivers/mtd/nand/Kconfig +++ b/drivers/mtd/nand/Kconfig @@ -56,6 +56,7 @@ config MTD_NAND_ECC_MXIC config MTD_NAND_ECC_MEDIATEK tristate "Mediatek hardware ECC engine" depends on HAS_IOMEM + depends on ARCH_MEDIATEK || COMPILE_TEST select MTD_NAND_ECC help This enables support for the hardware ECC engine from Mediatek. -- 2.25.1