From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Sun, 12 Aug 2012 11:12:37 +0300 Subject: [U-Boot] arm: omap: Fix switching back to nandecc sw. In-Reply-To: <502569C0.7050804@myspectrum.nl> References: <502569C0.7050804@myspectrum.nl> Message-ID: <50276575.3060108@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Jeroen, Thanks for the patch! On 08/10/12 23:06, Jeroen Hofstee wrote: > Switching back to nandecc sw fails to write correctly. A fix for this is > already mentioned in the thread below, lets fix it. > > mentioned in http://lists.denx.de/pipermail/u-boot/2012-February/119002.html I would expect to have an actual explanation in the commit message instead of (or along with) the link above and not just something like: we fix nandecc sw, want to know more, go somewhere else... > > Signed-off-by: Jeroen Hofstee After the commit message is fixed, Acked-by: Igor Grinberg > --- > drivers/mtd/nand/omap_gpmc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c > index ca868ef..71aec1a 100644 > --- a/drivers/mtd/nand/omap_gpmc.c > +++ b/drivers/mtd/nand/omap_gpmc.c > @@ -280,6 +280,7 @@ void omap_nand_switch_ecc(int32_t hardware) > omap_hwecc_init(nand); > printf("HW ECC selected\n"); > } else { > + nand->ecc.size = 0; > nand->ecc.mode = NAND_ECC_SOFT; > /* Use mtd default settings */ > nand->ecc.layout = NULL; -- Regards, Igor.