Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756091AbcLBEeY (ORCPT ); Thu, 1 Dec 2016 23:34:24 -0500 Received: from conssluserg-01.nifty.com ([210.131.2.80]:52191 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752257AbcLBEeX (ORCPT ); Thu, 1 Dec 2016 23:34:23 -0500 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com uB24Y0Wu019825 X-Nifty-SrcIP: [209.85.213.176] MIME-Version: 1.0 In-Reply-To: <20161127162129.67bb8e00@bbrezillon> References: <1480183585-592-1-git-send-email-yamada.masahiro@socionext.com> <1480183585-592-10-git-send-email-yamada.masahiro@socionext.com> <20161127162129.67bb8e00@bbrezillon> From: Masahiro Yamada Date: Fri, 2 Dec 2016 13:33:58 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 09/39] mtd: nand: denali: fix erased page check code To: Boris Brezillon Cc: linux-mtd@lists.infradead.org, Linux Kernel Mailing List , Marek Vasut , Brian Norris , Richard Weinberger , David Woodhouse , Cyrille Pitchen Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1201 Lines: 46 Hi Boris, 2016-11-28 0:21 GMT+09:00 Boris Brezillon : > On Sun, 27 Nov 2016 03:05:55 +0900 > Masahiro Yamada wrote: > >> Currently, is_erased() is called against "buf" twice, so the second >> call is meaningless. The second one should be checked against >> chip->oob_poi. >> > > IMO, patch 9 to 12 should be squashed in a single patch. All you're > doing in these patch is fixing the check_erased_page logic. > > You can describe the different broken thing in the commit message, but > splitting things as you do does not help much. OK. I will do so. I realized some mistakes in this part (both in my patches and in the current mainline code), so I will rework it in a more sensible chunk. > Also, please have at nand_check_erased_ecc_chunk() [1] instead of using > a private method (is_erased()) to check if the page is erased. > With this method you get bitflips in erased pages correction for free. I will use this helper, thanks! With this, I think I answered all of your questions to v1. (Please tell me if there is something I missed to answer.) Thanks a lot for your review. -- Best Regards Masahiro Yamada