From patchwork Wed May 27 13:42:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 187268 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp1133604ilb; Wed, 27 May 2020 06:42:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyVA1zZo9GNx7QcP5cWSbf+BEvHMybsuCVkp0kqaxo8EgqEeJaePj9M3zuDQvmBd0/+0vg X-Received: by 2002:a63:1d08:: with SMTP id d8mr3990612pgd.306.1590586961437; Wed, 27 May 2020 06:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590586961; cv=none; d=google.com; s=arc-20160816; b=tm4P0VvPF1v8WG8pADoXxrDkuIk6GfRcLSgptsfQmmhpfYkvzBQ6U090R6G3J+GyWN GllrpC4uI8EzeB6lhA7fvuk6FAOlH3OHTWlVTY1ktPMy6HQWx8sobx5guQZUm7vjS2B4 MveEi9oiweHXEL77flNxQH/ddrfSlI+CffHUa5B0dfnvzaWajtor4IUkE2pN6CIcXvI9 JUG4tkIYD0aryXgZ5AF59Cihbt0w7p96BfgODTMm3OcwRYKSK+54GLh8I47BYN3DY7bh ZGqG/hQchbgUtp0jF7fmkx6f27sgThWYmzv5f8kRC2/KLIgYgCx5yK743YsK/M18idzH je1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature; bh=iz2SmUIMXBT1JgIoTAu6VsTTkSzuxloOSl1EPlQiHN0=; b=Qh3oG22WetXgD8lRyGY1hra5P6+44l+bWYY+w9Fo90tT8t9fQJgoo7kiEAY7D+3TkY hxdVGf/GlLrgRHgm5ASGd8gWEQKMiTjBsw1n/DeIIcJbmZ05rsFBEdxUTL9+R8MmIPoU GzpTCQIvvqtwbdtwQ2sotplgH7lmEb2AgBhoLkk+ovzScuGnBM+o9CZYnDEbJLfyrVon /cg/z6cOkL2Uauwa5hx3I/+V0VjFpJCigSfwamadcFiTC7u0ztMJsyYDZrYfKSK/9Abl rZnQ4gSGG/axMK2FfT8rXG1c9Rjd4ZyFvvyyRYmWBzaCZf+8clqtJA+nXtb165wN13PN PIuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=oqtaCmaB; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id q27si2460563pgb.511.2020.05.27.06.42.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 06:42:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=oqtaCmaB; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) smtp.mailfrom="linux-mtd-bounces+patch=linaro.org@lists.infradead.org" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=iz2SmUIMXBT1JgIoTAu6VsTTkSzuxloOSl1EPlQiHN0=; b=oqtaCmaB5AtBrv vrG2yOA5snPEhtbwWUhcdoqAtXPU9e9EPtiaXbRGu1jh1VWapafgA4d46GTNyHBww4/WzMEcvZEfq gBHnF+81fIVSsFEnVFZhd5ck7QFLEcdaegwTw8xxf7KKuzPEQORFmqoy2uW2XgnC6lPhuLIebtw4c DOBdITe8joJ6JBd0Weabw/vsrbaJqkOLMSHC/OkJNK421DBUTHGzlnSjqP/5PkvjExc1oJiHLVxD2 BHMije5GRYjmtJFv6kFP3f9Ql/OTPjTJ6jW0VfwtfNpTK/iY8f0Uc0B5nWBXdaYZXJ6TJcwflWUK9 g2UcAHbLz518KAr0kJlQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jdwKF-0006ce-8v; Wed, 27 May 2020 13:42:31 +0000 Received: from mout.kundenserver.de ([212.227.126.133]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jdwKB-0006bf-Ey for linux-mtd@lists.infradead.org; Wed, 27 May 2020 13:42:28 +0000 Received: from threadripper.lan ([149.172.98.151]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1MaIrN-1jYcro1YGL-00WCjo; Wed, 27 May 2020 15:42:13 +0200 From: Arnd Bergmann To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Boris Brezillon Subject: [PATCH] mtd: rawnand: arasan: select CONFIG_BCH Date: Wed, 27 May 2020 15:42:03 +0200 Message-Id: <20200527134210.847411-1-arnd@arndb.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:0ERleDGDoYzZSO351/qcuQ53P9BOoY8n9kiIrDVxRwankQHZJKf q0LF7oeTmAubbA5uNTQKrD28V3IGepb0X6rPuNYuwHPTlRA4Vcx2h+MxTaSMfUTQRgHdqUE iL7XTOg4B0iJBExr22T1i764EAj9WNVWVts5wJOYYfZlLVF13fcdJ37PH+7lbbWC/YL5Pz4 joHLK8o3erWRfgZ6koFrg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:TcWRwqlhomw=:27oxfRCh9GEKpKasOksz0+ tqu0k7N/C+sN91belOMslygH/VVIX6C0L8VWWIeL1TCNn535PCE8Bk1xMlakycYSXv5uQIYjo ekmDmeuY4xe3jdt9oq3w1Mk2ybck1vmiUvMviRJ9W6FpvSaIIAeGJFWFlnRp591KUpTczegI2 evePeEBRX/sn3AzSFBXFRL6c2fGEskiwkZoFrXjs30tXAEVzdbZGHe1ZsiDxQ8hR7d532jKak 16k2No9kaC/VLMxjnf35RIelieaPnAB4wgoKW9PW+k767RGx72PQjybOYSc39nGYOX/kgtcYs nJiNfg3Qhc5wMDh7R0kxBTZLBVyVAQqoJZshWED7ee/euxetggP/iWKCO5MSBwyeDOu51e5nY 46Ot3QpUXVMDNxpNR711+yLb1d0CLMiU6JpH80QsWSBjm0uiwQ0PYzjijx/DvvWRPEYo0BrUr 6IDkwthIdyTZTJqe1/kJ7zZH1S6TiB189Nmn8BP/EmS9sEzTH4sVuzCRAPDO8xIkfxB7Vua2Y 3K2tAhHaqJ6DPSNgKyOEqVyD2YCL/CefkZ7obf5kwwcsW1Zoz9GxVepDBPKomLUM96VOaXwXK UzwMO8JIUdJZ2sAUmo2BqRM2FHvvZTkeEtdB9F+nIBT2bnW2qUV2T1EP1VEqLBm2L1/2DqIu5 VwY+v5rtp5aAlhp1evVZZZerXyxSMVEzS3uDQWMHEiGzC2A9X1t984fI0pixF19MeX5FrML0M JyJdrz3ods9BApsl3DCCO457qikGmcDKC+gCT6FNT5EBJVax4oWo0yh9a/P8h3DN6hMaqQwi8 nC38W5X1AxIk4DQcemNb1njF3vlFbs1VLZ8EiUADPLc6mw3PYM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200527_064227_789676_0F45F3FD X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [212.227.126.133 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.133 listed in wl.mailspike.net] X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Brendan Higgins , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Mason Yang , Piotr Sroka Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org Like several other nand flash drivers, this one requires the BCH library to be selected from Kconfig. arm-linux-gnueabi-ld: drivers/mtd/nand/raw/arasan-nand-controller.o: in function `anfc_attach_chip': arasan-nand-controller.c:(.text+0x894): undefined reference to `bch_init' arm-linux-gnueabi-ld: drivers/mtd/nand/raw/arasan-nand-controller.o: in function `anfc_detach_chip': arasan-nand-controller.c:(.text+0x98c): undefined reference to `bch_free' arm-linux-gnueabi-ld: drivers/mtd/nand/raw/arasan-nand-controller.o: in function `anfc_read_page_hw_ecc': arasan-nand-controller.c:(.text+0x1080): undefined reference to `bch_decode' Fixes: 197b88fecc50 ("mtd: rawnand: arasan: Add new Arasan NAND controller") Signed-off-by: Arnd Bergmann --- drivers/mtd/nand/raw/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.26.2 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig index e2bc87779bf9..113f61052269 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/drivers/mtd/nand/raw/Kconfig @@ -456,6 +456,7 @@ config MTD_NAND_CADENCE config MTD_NAND_ARASAN tristate "Support for Arasan NAND flash controller" depends on HAS_IOMEM && HAS_DMA + select BCH help Enables the driver for the Arasan NAND flash controller on Zynq Ultrascale+ MPSoC.