From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932458AbcFJOEp (ORCPT ); Fri, 10 Jun 2016 10:04:45 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:33956 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbcFJOEo (ORCPT ); Fri, 10 Jun 2016 10:04:44 -0400 Date: Fri, 10 Jun 2016 09:04:41 -0500 From: Rob Herring To: Boris Brezillon Cc: David Woodhouse , Brian Norris , linux-mtd@lists.infradead.org, Richard Weinberger , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH 1/3] mtd: nand: Add an option to maximize the ECC strength Message-ID: <20160610140441.GA4743@rob-hp-laptop> References: <1465398264-8202-1-git-send-email-boris.brezillon@free-electrons.com> <1465398264-8202-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: <1465398264-8202-2-git-send-email-boris.brezillon@free-electrons.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2016 at 05:04:22PM +0200, Boris Brezillon wrote: > The generic NAND DT bindings allows one to tweak the ECC strength and > step size to their need. It can be used to lower the ECC strength to > match a bootloader/firmware config, but might also be used to get a better > reliability. > > In the latter case, the user might want to use the maximum ECC strength > without having to explicitly calculate the exact value (this value not > only depends on the OOB size, but also on the NAND controller, and can > be tricky to extract). > > Add a generic 'nand-ecc-maximize' DT property and the associated > NAND_ECC_MAXIMIZE flag, to let ECC controller drivers select the best > ECC strength and step-size on their own. > > Signed-off-by: Boris Brezillon > --- > Documentation/devicetree/bindings/mtd/nand.txt | 9 +++++++++ Acked-by: Rob Herring > drivers/mtd/nand/nand_base.c | 3 +++ > include/linux/mtd/nand.h | 1 + > 3 files changed, 13 insertions(+)