From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752726AbcAGCsS (ORCPT ); Wed, 6 Jan 2016 21:48:18 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:32824 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752262AbcAGCsP (ORCPT ); Wed, 6 Jan 2016 21:48:15 -0500 Date: Wed, 6 Jan 2016 18:48:12 -0800 From: Brian Norris To: Boris Brezillon Cc: David Woodhouse , linux-mtd@lists.infradead.org, "Franklin S Cooper Jr." , Maxim Levitsky , Nicolas Ferre , Jean-Christophe Plagniol-Villard , Alexandre Belloni , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/5] mtd: nand: return consistent error codes in ecc.correct() implementations Message-ID: <20160107024812.GZ109450@google.com> References: <1451503927-10831-1-git-send-email-boris.brezillon@free-electrons.com> <1451503927-10831-2-git-send-email-boris.brezillon@free-electrons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1451503927-10831-2-git-send-email-boris.brezillon@free-electrons.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2015 at 08:32:03PM +0100, Boris Brezillon wrote: > The error code returned by the ecc.correct() are not consistent over the > all implementations. > > Document the expected behavior in include/linux/mtd/nand.h and fix > offending implementations. > > Signed-off-by: Boris Brezillon > --- > drivers/mtd/nand/atmel_nand.c | 2 +- > drivers/mtd/nand/bf5xx_nand.c | 20 ++++++++++++++------ > drivers/mtd/nand/davinci_nand.c | 6 +++--- > drivers/mtd/nand/jz4740_nand.c | 4 ++-- > drivers/mtd/nand/mxc_nand.c | 4 ++-- > drivers/mtd/nand/nand_bch.c | 2 +- > drivers/mtd/nand/nand_ecc.c | 2 +- > drivers/mtd/nand/omap2.c | 6 +++--- > drivers/mtd/nand/r852.c | 4 ++-- > include/linux/mtd/nand.h | 8 +++++++- > include/linux/mtd/nand_bch.h | 2 +- > 11 files changed, 37 insertions(+), 23 deletions(-) Pushed patch 1, with added commentary about the bf5xx_nand bugfix. Brian