From patchwork Tue Sep 25 03:40:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 186681 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (unknown [IPv6:2001:4978:20e::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id F16362C008D for ; Tue, 25 Sep 2012 13:42:52 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TGM24-0006HE-3E; Tue, 25 Sep 2012 03:42:00 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TGM1d-00069B-TF for linux-mtd@lists.infradead.org; Tue, 25 Sep 2012 03:41:34 +0000 Received: by mail-pb0-f49.google.com with SMTP id rq8so14273168pbb.36 for ; Mon, 24 Sep 2012 20:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=revoFcoWnfJfZJ9yK4+j23JqSKnPfKTZO6v7RdTCfQk=; b=rJxE3H4FjSrS0GzE8//5iQyq/n/iwSASZtkh1dRopzkzn+YQ9huJUVtB25nGRic1Jp lRufoDyo8pihvNS3mP0Eq4C4YxRoyIMG70IAaNIbUDtqJzBnEWADGCOf0dI4+7Uoa8Nl ZLOll9K9Q4B6dU35rNo4gYOOmIA3Cdu+ug89QG7UgOAk2K539VEzdbeH8XjE0S6qKXrC 1XhMCuPovcp0Nu2f0QE9TAO9CcnQd2vpYwnbs3ERQTpbNq5slWNNfqR+bVymsjVxoK8x /oibBhKcnwf3In6LOflTKr8R+QYe/zPq+mFEaaACV5iaA291enTCwDgpfS7pjvhzB8sY d3Rw== Received: by 10.68.189.164 with SMTP id gj4mr42025854pbc.48.1348544493670; Mon, 24 Sep 2012 20:41:33 -0700 (PDT) Received: from ld-irv-0074.broadcom.com (pv141010.reshsg.uci.edu. [169.234.141.10]) by mx.google.com with ESMTPS id bj7sm9760372pab.24.2012.09.24.20.41.31 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 24 Sep 2012 20:41:32 -0700 (PDT) From: Brian Norris To: Subject: [PATCH 7/9] mtd: nand: increase max OOB size to 640 Date: Mon, 24 Sep 2012 20:40:53 -0700 Message-Id: <1348544455-17656-8-git-send-email-computersforpeace@gmail.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1348544455-17656-1-git-send-email-computersforpeace@gmail.com> References: <1348544455-17656-1-git-send-email-computersforpeace@gmail.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.160.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (computersforpeace[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Angus Clark , Mike Dunn , Artem Bityutskiy , Huang Shijie , Shmulik Ladkani , Brian Norris , David Woodhouse X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Some Hynix and Samsung MLC NAND have 640B OOB size. Sooner or later, we should dynamically allocate the buffers that use these macros. Signed-off-by: Brian Norris --- include/linux/mtd/nand.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index ce22824..817ff5a 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -56,7 +56,7 @@ extern int nand_unlock(struct mtd_info *mtd, loff_t ofs, uint64_t len); * is supported now. If you add a chip with bigger oobsize/page * adjust this accordingly. */ -#define NAND_MAX_OOBSIZE 576 +#define NAND_MAX_OOBSIZE 640 #define NAND_MAX_PAGESIZE 8192 /*