From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bootlin.com ([62.4.15.54]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fEXUO-0002yl-Ob for linux-mtd@lists.infradead.org; Fri, 04 May 2018 09:58:58 +0000 Date: Fri, 4 May 2018 11:58:35 +0200 From: Miquel Raynal To: Boris Brezillon Cc: Richard Weinberger , linux-mtd@lists.infradead.org, David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , stable@vger.kernel.org, Thomas Petazzoni , Bean Huo , Peter Pan Subject: Re: [PATCH] mtd: rawnand: micron: Fix support for on-die ECC Message-ID: <20180504115835.5702710e@xps13> In-Reply-To: <20180503074908.20485-1-boris.brezillon@bootlin.com> References: <20180503074908.20485-1-boris.brezillon@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Boris, On Thu, 3 May 2018 09:49:08 +0200, Boris Brezillon wrote: > It looks like the NAND_STATUS_FAIL bit is sticky after an ECC failure, > which leads all READ operations following the failing one to report > an ECC failure. Reset the chip to clear the NAND_STATUS_FAIL bit. > > Note that this behavior is not document in the datasheet, but resetting > the chip is the only solution we found to fix the problem. > > Fixes: 9748e1d87573 ("mtd: nand: add support for Micron on-die ECC") > Cc: > Signed-off-by: Boris Brezillon > Cc: Thomas Petazzoni > Cc: Bean Huo > Cc: Peter Pan > --- Reviewed-by: Miquel Raynal