From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wi0-f171.google.com ([209.85.212.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T3Qnd-0007Hv-4z for linux-mtd@lists.infradead.org; Mon, 20 Aug 2012 12:09:42 +0000 Received: by wibhq4 with SMTP id hq4so2752365wib.0 for ; Mon, 20 Aug 2012 05:09:39 -0700 (PDT) From: Richard Genoud To: Artem Bityutskiy Subject: [PATCH v2 2/7] UBI: change CONFIG_MTD_UBI_BEB_LIMIT range Date: Mon, 20 Aug 2012 14:09:16 +0200 Message-Id: <1345464561-24464-3-git-send-email-richard.genoud@gmail.com> In-Reply-To: <1345464561-24464-1-git-send-email-richard.genoud@gmail.com> References: <1345464561-24464-1-git-send-email-richard.genoud@gmail.com> Cc: Richard Genoud , linux-mtd@lists.infradead.org, Shmulik Ladkani List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 -- 1.7.2.5