Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp781982pxv; Thu, 15 Jul 2021 16:10:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8Xz2Af5IkOZRr0Bl6Vk9T31/cAbr+FJFejEQsaLRYE+6FXmVOt0JfbRadyjEiSVQ4IisN X-Received: by 2002:a17:906:1fca:: with SMTP id e10mr8009834ejt.420.1626390616574; Thu, 15 Jul 2021 16:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626390616; cv=none; d=google.com; s=arc-20160816; b=Mu4itesinwinmHnVj+jRNkaCNWk9htYdW8E45SS7VHSqFVXM+TXkR1SruSpV1Z1knZ pjiHNfqMUTUe0q0DC2hd2rRCm+TxkQiTMZySwOCTpi2CeKiFsJTk7t2MSZ5LrYU8vBnR 2GY6qw8+4QO3Yl/IqYuQLPxKPsjK3vkRpbLVWJAHOwJMaxDFdr+KmFed4f3Gnqsf9jCU 9D4ieCVEDql7B9oLJ2WA1wRWJcXJqeHFp0EkYupYEIp+PK6hKL/o8MMA50dcRL6YBwcz WXXxXSvu66y5ONhy2t2q1rxGg/Rw0X0eNTBxKizV0mirp6juTGolj/jtvUjk1YmZtDxd wFZw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fg6d2NXnN8yOHkwLmljUD5wpiwbp+Atf93RUqBIZif8=; b=ZlBt58AW44oVkWjfr/oK2XZ7y78Xo9+LcT5EMcHRHAKuQFBhl+YgfryZOizSDIV9Ws ASbuzmyW68qCUAJFmT106rcwyC11vq+YSmFosVVFoyLIVjRQ2WmPOIeSTXsUcNddabB0 Ohl/wMbFTBJlWHXJwZ/mnaefpnSBxtLIndqatlsiOZsMYinLpK1Dlc1mpye34fFgIlkn 7VTBD4tN3e67qtZnvr7TWUrmODO70xNcvwNTf6VpDl1pHeEiosEkf6JJRWZ1FJxCOxzp 6TbwuVuiEGoQ1UYNn0+1Z4xs7sVNd1Qq9EqhSgUSyKZH6v4jlfxoAEyYlMLjyr6/mAty YumQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f10si8386612ejc.211.2021.07.15.16.09.53; Thu, 15 Jul 2021 16:10:16 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231428AbhGOXLf (ORCPT + 99 others); Thu, 15 Jul 2021 19:11:35 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:49615 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231274AbhGOXLd (ORCPT ); Thu, 15 Jul 2021 19:11:33 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id A7972C0009; Thu, 15 Jul 2021 23:08:36 +0000 (UTC) From: Miquel Raynal To: Stefan Riedmueller , Miquel Raynal , Vignesh Raghavendra Cc: linux-mtd@lists.infradead.org, Richard Weinberger , Mauro Carvalho Chehab , Kieran Bingham , Fabio Estevam , Pengutronix Kernel Team , Sascha Hauer , Boris Brezillon , Dan Brown , David Woodhouse , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: rawnand: nand_bbt: Skip bad blocks when searching for the BBT in NAND Date: Fri, 16 Jul 2021 01:08:36 +0200 Message-Id: <20210715230836.222817-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210625123821.207458-1-s.riedmueller@phytec.de> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'1a57b13e6017d2af575f4f42e848aa0b64d4bcf1' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-06-25 at 12:38:21 UTC, Stefan Riedmueller wrote: > The blocks containing the bad block table can become bad as well. So > make sure to skip any blocks that are marked bad when searching for the > bad block table. > > Otherwise in very rare cases where two BBT blocks wear out it might > happen that an obsolete BBT is used instead of a newer available > version. > > This only applies to drivers which make use of a bad block marker in flash. > Other drivers won't be able to identify bad BBT blocks and thus can't skip > these. > > Signed-off-by: Stefan Riedmueller Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel