From patchwork Sun Dec 18 17:50:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 132107 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id DD0A5B6FE7 for ; Mon, 19 Dec 2011 04:50:25 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3ECB528292; Sun, 18 Dec 2011 18:50:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BLmLeM8v9Qik; Sun, 18 Dec 2011 18:50:23 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DBAA8282C7; Sun, 18 Dec 2011 18:50:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6A61D282C7 for ; Sun, 18 Dec 2011 18:50:19 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W7mtlaSYzCiM for ; Sun, 18 Dec 2011 18:50:18 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by theia.denx.de (Postfix) with ESMTPS id 2D30628292 for ; Sun, 18 Dec 2011 18:50:17 +0100 (CET) Received: by eekc14 with SMTP id c14so3802447eek.3 for ; Sun, 18 Dec 2011 09:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=LqFQ/StvXAfqhKE6NHM9wSFJ+hGWiJmjMV/RsflDGMA=; b=eRS5IdY52paEyzT7q0gM6JO+O8/EtCCHd5UDJuvs1E9XO3MpZieDozOVYVJJL8P+uU j5ZeFS9ffg4oGQ/zlyiTuHNu+vk3p4vcLlBRh8KVgmpb6fW6dkCSpv7yCRIGMU/bZmYt laDb87N5QylRLv5Fdkw3dPf9vrh8JvQJfZ+OY= Received: by 10.14.18.40 with SMTP id k40mr2963680eek.0.1324230615605; Sun, 18 Dec 2011 09:50:15 -0800 (PST) Received: from mashiro.kolej.mff.cuni.cz (vasut.kolej.mff.cuni.cz. [78.128.198.52]) by mx.google.com with ESMTPS id x12sm33025004eef.9.2011.12.18.09.50.14 (version=SSLv3 cipher=OTHER); Sun, 18 Dec 2011 09:50:15 -0800 (PST) From: Marek Vasut To: u-boot@lists.denx.de Date: Sun, 18 Dec 2011 18:50:10 +0100 Message-Id: <1324230610-22050-1-git-send-email-marek.vasut@gmail.com> X-Mailer: git-send-email 1.7.7.3 Cc: Scott Wood , Stefan Roese Subject: [U-Boot] [PATCH] MXS-NAND: Backport ecc.size from linux kernel X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The ecc.size for mxs NAND driver is set to 1 in Linux kernel and to 512 in U-Boot, which causes "ubi part" command malfunction due to wrong subpage size. Signed-off-by: Marek Vasut Cc: Wolfgang Denk Cc: Detlev Zundel Cc: Stefan Roese Cc: Scott Wood Cc: Veli-Pekka Peltola Tested-by: Veli-Pekka Peltola --- drivers/mtd/nand/mxs_nand.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/mxs_nand.c b/drivers/mtd/nand/mxs_nand.c index ce2a326..26778ac 100644 --- a/drivers/mtd/nand/mxs_nand.c +++ b/drivers/mtd/nand/mxs_nand.c @@ -1105,7 +1105,7 @@ int board_nand_init(struct nand_chip *nand) nand->ecc.layout = &fake_ecc_layout; nand->ecc.mode = NAND_ECC_HW; nand->ecc.bytes = 9; - nand->ecc.size = 512; + nand->ecc.size = 1; return 0;