From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1.bemta8.messagelabs.com ([216.82.243.200]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGCwz-0007D4-3u for linux-mtd@lists.infradead.org; Wed, 09 May 2018 00:27:23 +0000 From: IKEGAMI Tokunori To: Boris Brezillon CC: Brian Norris , Boris Brezillon , Richard Weinberger , Marek Vasut , PACKHAM Chris , "linux-mtd@lists.infradead.org" , Cyrille Pitchen , David Woodhouse , "Joakim Tjernlund" Subject: RE: [PATCH] mtd: cfi_cmdset_0002: Change erase functions to retry for error Date: Wed, 9 May 2018 00:27:05 +0000 Message-ID: References: <20180508132037.152cc581@bbrezillon> <20180508191144.5d8412b6@bbrezillon> <20180508200236.034ebb11@bbrezillon> In-Reply-To: <20180508200236.034ebb11@bbrezillon> Content-Language: ja-JP Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi Boris-san, Thanks for your comments. > > I can reproduce the flash write error by the same reproduction method= . > > And the error can be resolved by the same approach fixes as below. > > > >=20 > Hm, even the bug fix for the write path looks suspicious. BTW, you're > only checking the last written word, so how can you be sure all other > words have been written correctly? For the write buffer I think that it is enough to check only the last wor= d. Since it is described by the data sheets to check the operation status. > I don't know a lot about CFI chips, > but are you sure this is not a timing issue (timings mis-configured on > the controller side)? Yes I think that this is not a timing issue by mis-configuration. But it is still possible to be a timing issue but not mis-configured. The write and erase errors were caused by enabling CPU external sync mode= . For the CPU erratum workaround the sync mode is required to be enabled. > > Also I am asking to him to try the original patch on this thread. >=20 > Ok, let's wait for Joakim's feedback then. Noted this. Regards, Ikegami