Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp955144ybh; Tue, 10 Mar 2020 11:32:49 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvnbUrqjmJGP7DWnC05I+YvWtvzQzI+kmD0ZTV92E3RVU6gQmWsa2Ib0XgGpEyh8YgaoyHz X-Received: by 2002:aca:1903:: with SMTP id l3mr2103911oii.178.1583865169291; Tue, 10 Mar 2020 11:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583865169; cv=none; d=google.com; s=arc-20160816; b=UF4GAsH3hZGgTdPqkyw3WNFR7PkPxZdTYgDjKQ1Wy+U8v2g+Y5f+Lsgg95E6EE4uwt Q4Er7NsIzqkSlrG2AsVAl/vHIdzU/I/HdJ2fopAzPJlLAmH3qcZAJ7TsE9j2kvEsSGr0 QjqYA/8iOdp7xNkuY1b4rTfbep9v5HYmhOkAtdVXXOj0RqOSv8ZT3YqDK2DxJcnCW/kf X06NSvLdIH4QKrd2Dp54kV41c3E3DiuwbKG1WnLlhzoEftKDVKN14wnWAOtG/lMWD0kT 1xXeTrwH0oELzZK+w+QVgqpZIXLJgosq5v3Oh639XZyEAD3JIfHzQbOBKDKtwG2Z1347 gI6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=tOgEkaOLji28htVxvjiQMT/cNbHt7Rb0zXBM1vJ2NUM=; b=zip0jlJNJaXk3TIP+KQeTPUOnFZh7lSF5aF3AhZH+PEKij+Jz8Yd++Mwyxxf7Ccur1 HkBF7rU9Wtr04YlYO6uY02xlyrweMTOxHJ7Gp6AwoyxUbKoCiN5SP+kQ15pCprl3KJYS 605yRf/Sr9twK1po3vgCxnCqrFB37PPCLfdggSvg+E5UTncDz3VH+kyJTETsvuhHn+S0 TakoVqCdXV54q0Whd8+taEjSwjvgxKD8sCdV8RWVQs+zDjWKyzp4Ewt0RhzOIH7XTN8k GHX0wOh7FuO2+XELLvajqK7KeZHbWOAMUA77XYmC9fCmvcTBBCzAi0n03Pt9b+9vSkur 17Kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si9770723ots.130.2020.03.10.11.32.36; Tue, 10 Mar 2020 11:32:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727547AbgCJSbk (ORCPT + 99 others); Tue, 10 Mar 2020 14:31:40 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:50955 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbgCJSbj (ORCPT ); Tue, 10 Mar 2020 14:31:39 -0400 Received: from localhost.localdomain (unknown [91.224.148.103]) (Authenticated sender: miquel.raynal@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id C6FAD200004; Tue, 10 Mar 2020 18:31:36 +0000 (UTC) From: Miquel Raynal To: Schrempf Frieder , Boris Brezillon , Jeff Kletsky , liaoweixiong , Miquel Raynal Cc: Richard Weinberger , "linux-mtd@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: Re: [PATCH v3 3/3] mtd: spinand: Do not erase the block before writing a bad block marker Date: Tue, 10 Mar 2020 19:31:35 +0100 Message-Id: <20200310183135.18715-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200218100432.32433-4-frieder.schrempf@kontron.de> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: 5645f0332370783604813455c7157a5c73a770d3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-02-18 at 10:05:35 UTC, Schrempf Frieder wrote: > From: Frieder Schrempf > > Currently when marking a block, we use spinand_erase_op() to erase > the block before writing the marker to the OOB area. Doing so without > waiting for the operation to finish can lead to the marking failing > silently and no bad block marker being written to the flash. > > In fact we don't need to do an erase at all before writing the BBM. > The ECC is disabled for raw accesses to the OOB data and we don't > need to work around any issues with chips reporting ECC errors as it > is known to be the case for raw NAND. > > Fixes: 7529df465248 ("mtd: nand: Add core infrastructure to support SPI NANDs") > Cc: stable@vger.kernel.org > Signed-off-by: Frieder Schrempf > Reviewed-by: Boris Brezillon Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel