Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752388AbcDUUon (ORCPT ); Thu, 21 Apr 2016 16:44:43 -0400 Received: from bes.se.axis.com ([195.60.68.10]:55125 "EHLO bes.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751571AbcDUUom convert rfc822-to-8bit (ORCPT ); Thu, 21 Apr 2016 16:44:42 -0400 From: Mikael Starvik To: =?iso-8859-2?Q?Rafa=B3_Mi=B3ecki?= CC: Boris Brezillon , "linux-mtd@lists.infradead.org" , "Jesper Nilsson" , Brian Norris , linux-cris-kernel , open list Subject: Re: [PATCH V3 04/11] CRIS v32: nand: set ECC algorithm explicitly Thread-Topic: [PATCH V3 04/11] CRIS v32: nand: set ECC algorithm explicitly Thread-Index: AQHRmOs1W6dG6Y+xyUGQTrlsEFa+8J+U62jS Date: Thu, 21 Apr 2016 20:44:39 +0000 Message-ID: <6529E3BC-D594-4B3A-8735-1A79A71886CB@axis.com> References: <1460913104-27388-1-git-send-email-zajec5@gmail.com> <1460926387-9563-1-git-send-email-zajec5@gmail.com>,<1460926387-9563-5-git-send-email-zajec5@gmail.com> In-Reply-To: <1460926387-9563-5-git-send-email-zajec5@gmail.com> Accept-Language: sv-SE, en-US Content-Language: sv-SE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1612 Lines: 40 Acked-by: Mikael Starvik > 17 apr. 2016 kl. 22:53 skrev Rafa? Mi?ecki : > > This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to > enum nand_ecc_algo). > > Signed-off-by: Rafa? Mi?ecki > --- > arch/cris/arch-v32/drivers/mach-a3/nandflash.c | 1 + > arch/cris/arch-v32/drivers/mach-fs/nandflash.c | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c > index 5aa3f51..3f646c7 100644 > --- a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c > +++ b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c > @@ -157,6 +157,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void) > /* 20 us command delay time */ > this->chip_delay = 20; > this->ecc.mode = NAND_ECC_SOFT; > + this->ecc.algo = NAND_ECC_HAMMING; > > /* Enable the following for a flash based bad block table */ > /* this->bbt_options = NAND_BBT_USE_FLASH; */ > diff --git a/arch/cris/arch-v32/drivers/mach-fs/nandflash.c b/arch/cris/arch-v32/drivers/mach-fs/nandflash.c > index a7c17b0..a745405 100644 > --- a/arch/cris/arch-v32/drivers/mach-fs/nandflash.c > +++ b/arch/cris/arch-v32/drivers/mach-fs/nandflash.c > @@ -148,6 +148,7 @@ struct mtd_info *__init crisv32_nand_flash_probe(void) > /* 20 us command delay time */ > this->chip_delay = 20; > this->ecc.mode = NAND_ECC_SOFT; > + this->ecc.algo = NAND_ECC_HAMMING; > > /* Enable the following for a flash based bad block table */ > /* this->bbt_options = NAND_BBT_USE_FLASH; */ > -- > 1.8.4.5 >