Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033564AbbKERB3 (ORCPT ); Thu, 5 Nov 2015 12:01:29 -0500 Received: from mail-by2on0084.outbound.protection.outlook.com ([207.46.100.84]:11945 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030726AbbKERB1 (ORCPT ); Thu, 5 Nov 2015 12:01:27 -0500 X-Greylist: delayed 51107 seconds by postgrey-1.27 at vger.kernel.org; Thu, 05 Nov 2015 12:01:27 EST Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=bestguesspass action=none header.from=xilinx.com; From: Punnaiah Choudary Kalluri To: , , CC: , , , , , Punnaiah Choudary Kalluri Subject: [PATCH] mtd: Expand the ecc placement locations to 1216 Date: Thu, 5 Nov 2015 22:28:55 +0530 Message-ID: <1446742735-20824-1-git-send-email-punnaia@xilinx.com> X-Mailer: git-send-email 2.1.2 X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.0.0.1202-21922.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11FD048;1:t1ku4lNK98L5LWSjHgmzT6MjY+OaXYa1ytkUu46PzGmzDtdUm+cpgUa2M/lmsqidtxlFL0UIv6HZ2fzIQxFCF5+BhYy7gXrsIgvWqE93zZnckPUuSoE92sLYXg/kYKkXBXFHlxYJ2ymZq6mZz7Vr6QD1HdYPZt/Upt7oRhC8Yl3IH8IJTaAK4ONuNPynsJnSwNMNmWLEztxkkrWqlghScx5Ox8q0i/xEJqyEJhIS5fF0NGve/UjMqKZ9gh91HXfubkHeMX1AEsaiaql+Lq+5jDS9RlyjS0zOtdrD5OH55+ohnQbrYnvN8MSZJXhbOIWcMYh8iG0CBbLmaSg7+iFCLpii7QLnf4TPqm7wMBK2f7qO4q9YuG8caG5ZbOJD3oRX7DpmapG1eLAFKgV5J8R2DeN06sU8821ec7T48OzguXU= X-Forefront-Antispam-Report: CIP:149.199.60.100;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(47776003)(36756003)(45336002)(42186005)(87936001)(46386002)(5008740100001)(50466002)(189998001)(81156007)(107886002)(11100500001)(63266004)(5007970100001)(5001770100001)(50226001)(5001960100002)(6806005)(48376002)(36386004)(92566002)(4001450100002)(5003940100001)(4001430100002)(33646002)(90966002)(106466001)(103686003)(2201001)(86362001)(50986999)(52956003)(229853001)(19580405001)(19580395003)(107986001)(5001870100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2FFO11HUB006;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;MX:1;A:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11HUB006;2:zIO4Wc4x4xSjQsanYuE84BqllxvwTzAt4LfxwXB2tL5tv/eO4kX4UJasT95GhNMmiJU4qtm7MFmWaII2cbEA7NMvTSgjljZf0HGYJeNnbIvdCK6lISowXHwv4AlZXwS1RzunVsfrytQ1lGCcaB+6peVLaF5nzT5qaYEuDdq0wkQ=;3:yX0epQqDkoWzmKrkeba1sJxlUwpv843+DvbJn8YYwrW0oJ6TtpfasEaQRNeC5bDh7X7r11eHEUjt1UFPio7fpVPcK3muWcYKSEftwjStCSr4JpPu54NZ4mHizbcV3qkg6t0PUbvXzVCP2s1C5wGX6GuawR6+/TxZg5vZg4oBuC5n5NtHmeECtMIo3KUL8IhjxyM6f7QomPAp0CZ5z84Z8Jhh7ruXSmL/a/7lgd8inanpbEEJ7o50CprJqrxdBycKFp0aw1UepYiJD6K4iY5eFg==;25:jVTHjokwWfRmvk3tgHjAz6pOIiaoaHF5vXaqPSXNk4YmfZmz69S1gu2C6C/OaIlD8EW0YRJmEQ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sYS3ADHu2UQKvMlfwwYPwUZar+59U6INbKaqbxZBKcCweCxFuwBXHI0V0j4EBk8F3TFjJR0UhZqldLHxIsPrxbKBB+qZz+LFOME9QSfUbPft284lyr6x1wnHwMXfhS8DYkfe6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(10201501046)(3002001);SRVR:BY2FFO11HUB006;BCL:0;PCL:0;RULEID:;SRVR:BY2FFO11HUB006; X-Forefront-PRVS: 0751474A44 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2FFO11HUB006;23:PfYWWcSxQ3saaLEhnbmKgXALCyntnLYgMZKPPzmK?= =?us-ascii?Q?j4nlFJTDkNjfxvWmN7Wba7mR62YQWudIn+n7b1KGnXHOcsFeikohPd3u80J9?= =?us-ascii?Q?1/+5UL0wJIelmonpNb2BovISNGD+cMA1WfXmxiKLWx5HwcyR3rzGagvILQEM?= =?us-ascii?Q?dYDpy1/bMDv6L5C3icKwiwDCK5xIW7PciHOVTPn8taj5wSvG6JGoPVpamgzF?= =?us-ascii?Q?/YjxLUVIDGaD7aXWvp3iNnHxOEoPxMXuUvC8eujQh2FrO1TxswTF34+ELxGX?= =?us-ascii?Q?e1B4S5GaFgg0jLLndizn+o/K8CFo9wOJ17DibbTLk8XnsKJ4XzUgdMmM4pXg?= =?us-ascii?Q?7SNiNl8dMA0MgDEvtXZt0C46IxL2jBTpV3BvRPlO3t3BVOHcv5fsci6C62nk?= =?us-ascii?Q?O8zsWXSim/M/Hwr/57Ssv6+4vMIQ2Kp+MKm+eirPA6nEiidsvzB5l7mdZ7Zm?= =?us-ascii?Q?XiRxQZEIK+WIjIr61XmLHTRGh/h4kdcwIg6iapOdvrhJujEWi+/vJXWSg6rb?= =?us-ascii?Q?06b+hQkXweA6t3PENnA9Pggi8mwIY5EQhoJjOvWxkApNehoBq2uA8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agnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2015 17:01:24.4131 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2FFO11HUB006 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1595 Lines: 45 Device like MT29F32G08ABCDBJ4 have a writesize/oobsize of 16K/1216 Bytes. So, increasing the maximum ecc placement locations to 1216 Signed-off-by: Punnaiah Choudary Kalluri --- include/linux/mtd/mtd.h | 2 +- include/uapi/mtd/mtd-abi.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index f17fa75..1fd3cc6 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -95,7 +95,7 @@ struct mtd_oob_ops { }; #define MTD_MAX_OOBFREE_ENTRIES_LARGE 32 -#define MTD_MAX_ECCPOS_ENTRIES_LARGE 640 +#define MTD_MAX_ECCPOS_ENTRIES_LARGE 1216 /* * Internal ECC layout control structure. For historical reasons, there is a * similar, smaller struct nand_ecclayout_user (in mtd-abi.h) that is retained diff --git a/include/uapi/mtd/mtd-abi.h b/include/uapi/mtd/mtd-abi.h index 763bb69..c4d592c 100644 --- a/include/uapi/mtd/mtd-abi.h +++ b/include/uapi/mtd/mtd-abi.h @@ -220,8 +220,8 @@ struct nand_oobfree { __u32 length; }; -#define MTD_MAX_OOBFREE_ENTRIES 8 -#define MTD_MAX_ECCPOS_ENTRIES 64 +#define MTD_MAX_OOBFREE_ENTRIES 32 +#define MTD_MAX_ECCPOS_ENTRIES 1216 /* * OBSOLETE: ECC layout control structure. Exported to user-space via ioctl * ECCGETLAYOUT for backwards compatbility and should not be mistaken as a -- 2.1.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/