From patchwork Mon Aug 20 16:00:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Genoud X-Patchwork-Id: 178867 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from merlin.infradead.org (merlin.infradead.org [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 D9D5A2C00AD for ; Tue, 21 Aug 2012 02:02:16 +1000 (EST) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T3UPM-00074x-UX; Mon, 20 Aug 2012 16:00:53 +0000 Received: from mail-wi0-f177.google.com ([209.85.212.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T3UP4-0006yZ-4q for linux-mtd@lists.infradead.org; Mon, 20 Aug 2012 16:00:35 +0000 Received: by wibhn17 with SMTP id hn17so2909171wib.0 for ; Mon, 20 Aug 2012 09:00:31 -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=OwUQPsokl2BPHqHu1k2ZNlvCI4187mNkD1TMRP8NvzM=; b=cbVclZbnBEQ1hQRFNIWUhbp+0931XaiT9H/L2ChVgpb6uNoK2F3gw/28d3j64pMExa 7Q4+SF66EV3gz2YtDB/rQV+CgaLV52LktyLfXScdOuapG2LkD7FyGap527isZkCwN5QF XfKZxrZSlN9AUyqRQ3zH/YgsMB+Kb+DyF2wE1FkVOzNfPSHcOD4sFqEHMLu98RddC1BL AkkaJniLweIuxoR2gAl/E93Fdx+oM5dji49Ig+TxX16dA71K5QsI30BdQbHz0yl3Nu9v ipRQ8WRMSOoXMfcFWqVwDEXs80UDVA1HXozWH69nr/Zc9UnwTzWdQwife8UQ8k+D+mnt wQEA== Received: by 10.180.84.169 with SMTP id a9mr30279918wiz.8.1345478431702; Mon, 20 Aug 2012 09:00:31 -0700 (PDT) Received: from localhost.localdomain (lyon.paratronic.fr. [213.41.177.106]) by mx.google.com with ESMTPS id ef5sm42489198wib.3.2012.08.20.09.00.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 20 Aug 2012 09:00:31 -0700 (PDT) From: Richard Genoud To: Artem Bityutskiy Subject: [PATCH v3 2/6] UBI: change CONFIG_MTD_UBI_BEB_LIMIT range Date: Mon, 20 Aug 2012 18:00:12 +0200 Message-Id: <1345478416-23900-3-git-send-email-richard.genoud@gmail.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1345478416-23900-1-git-send-email-richard.genoud@gmail.com> References: <1345478416-23900-1-git-send-email-richard.genoud@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.212.177 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (richard.genoud[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: Richard Genoud , linux-mtd@lists.infradead.org, Shmulik Ladkani 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 There's no reason to limit MTD_UBI_BEB_LIMIT to 256 (25%), let's set it to 768 (75%) this should be enough. And the lower bound can be 0, no reason to forbid it (even if it will be reserved for test purpose only I guess). Signed-off-by: Richard Genoud --- drivers/mtd/ubi/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig index 9ee92d6..dcbaae3 100644 --- a/drivers/mtd/ubi/Kconfig +++ b/drivers/mtd/ubi/Kconfig @@ -30,7 +30,7 @@ config MTD_UBI_WL_THRESHOLD config MTD_UBI_BEB_LIMIT int "Maximum expected bad eraseblock count per 1024 eraseblocks" default 20 - range 1 256 + range 0 768 help This option specifies the maximum bad physical eraseblocks UBI expects on the MTD device (per 1024 eraseblocks). If the underlying