From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wi0-f169.google.com ([209.85.212.169]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1T3Qna-0007Hc-TJ for linux-mtd@lists.infradead.org; Mon, 20 Aug 2012 12:09:39 +0000 Received: by wibhm2 with SMTP id hm2so3052970wib.0 for ; Mon, 20 Aug 2012 05:09:36 -0700 (PDT) From: Richard Genoud To: Artem Bityutskiy Subject: [PATCH v2 0/7] UBI: add max_beb_per1024 parameter / ioctl Date: Mon, 20 Aug 2012 14:09:14 +0200 Message-Id: <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: , Artem, This patch serie introduce, step by step the kernel module parameter max_beb_per1024, then the ioctl and finally drop the kernel config option CONFIG_MTD_UBI_BEB_LIMIT. It's based on top of linux-ubi/master (4ebb4b5) The differences from previous version are: * The upper bound of max_beb_per1024 is checked and set to 768 * The vid_hdr_offs parameter can now be an empty string in order to have a kernel parameter like that: mtd.ubi=2,,25 * The max_beb_per1024 parameter can also be empty (just for consistency with vid_hdr_offs) * The comment in ubi-user.h has been adjusted with the new range 0-768 and the term "default kernel value" is used in place of MTD_UBI_DEFAULT_BEB_LIMIT or CONFIG_MTD_UBI_BEB_LIMIT * As max_beb_per1024 can be safely null, the config range of MTD_UBI_BEB_LIMIT has been updates to 0..768 * For the ioctl, max_beb_per1024 is now an __u16, so that we are not limited to 255 anymore. * The comment on the default value of max_beb_per1024 has been adjusted before and after the ioctl patch. I compiled and tested each patch, so every thing should go smoothly. I tested also with a 0 value for CONFIG_MTD_UBI_BEB_LIMIT, it seemed to go well. Best Regards Richard. Richard Genoud (7): UBI: prepare for max_beb_per1024 module parameter addition UBI: change CONFIG_MTD_UBI_BEB_LIMIT range UBI: accept empty string for vid_hdr_offs parameter UBI: check max_beb_per1024 value in ubi_attach_mtd_dev UBI: replace MTD_UBI_BEB_LIMIT with module parameter UBI: add ioctl for max_beb_per1024 UBI: drop CONFIG_MTD_UBI_BEB_LIMIT arch/arm/configs/sam9_l9260_defconfig | 1 - drivers/mtd/ubi/Kconfig | 26 ------------ drivers/mtd/ubi/build.c | 69 ++++++++++++++++++++++++--------- drivers/mtd/ubi/cdev.c | 3 +- drivers/mtd/ubi/ubi.h | 6 ++- include/mtd/ubi-user.h | 19 +++++++++- 6 files changed, 75 insertions(+), 49 deletions(-) -- 1.7.2.5