From patchwork Sat Nov 26 18:05:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 84279 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp541955qgi; Sat, 26 Nov 2016 10:10:02 -0800 (PST) X-Received: by 10.99.149.90 with SMTP id t26mr25071093pgn.156.1480183802000; Sat, 26 Nov 2016 10:10:02 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k71si49393774pfb.249.2016.11.26.10.10.01; Sat, 26 Nov 2016 10:10:01 -0800 (PST) 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; dkim=pass header.i=@nifty.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 S1753561AbcKZSJi (ORCPT + 25 others); Sat, 26 Nov 2016 13:09:38 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:48110 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753180AbcKZSIT (ORCPT ); Sat, 26 Nov 2016 13:08:19 -0500 Received: from grover.sesame (FL1-111-169-71-157.osk.mesh.ad.jp [111.169.71.157]) (authenticated) by conuserg-11.nifty.com with ESMTP id uAQI6Uej018512; Sun, 27 Nov 2016 03:06:43 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com uAQI6Uej018512 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1480183604; bh=whq6pv4UQvzdC4uPjsx4mf6IShj3peFT+A2OnXsvOyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LO1Xpp3vEnV4PyH928yCWAXCvCdGeyClABBWpj1k5+uZZ1q1oN2R30+fTmKASDYY7 7w8yb7bRPSuvqC0yVj76tssiPdxmZQZUpORsM60wv8AaO+23VldHonDnLD3yLKkAKz YgOkb5DsdrvivEpP5F2OgEyHvlezGUumNkvd4B6zcpKynWLBtEIZ+a22oYsE6hdaTc 1Wq/WWojIsdjoqh0UElfrPu63QqVzHQ3Xf/2Jwtq5f2JzLgH1AQn15twub98yAVM/f NOCerNUk6HDVrwPbuFzGJP7+NNC36x+VDByoOrYa2iTlo28pIOosz9NgL9tRifDtA5 XD0crlMV3v04A== X-Nifty-SrcIP: [111.169.71.157] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org, Boris Brezillon , Marek Vasut , Brian Norris , Richard Weinberger , David Woodhouse , Cyrille Pitchen Subject: [PATCH 13/39] mtd: nand: denali: increment ecc_stats->corrected Date: Sun, 27 Nov 2016 03:05:59 +0900 Message-Id: <1480183585-592-14-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480183585-592-1-git-send-email-yamada.masahiro@socionext.com> References: <1480183585-592-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update the number of corrected bit flips when read_page() succeeds. Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/denali.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index a6445d9..4cc8945 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -1162,6 +1162,9 @@ static int denali_read_page(struct mtd_info *mtd, struct nand_chip *chip, mtd->ecc_stats.failed++; return 0; } + + mtd->ecc_stats.corrected += max_bitflips; + return max_bitflips; }