From patchwork Mon Jul 1 05:35:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artem Bityutskiy X-Patchwork-Id: 256013 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:770:15f::2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 92EBB2C00AB for ; Mon, 1 Jul 2013 15:32:18 +1000 (EST) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWiZ-0001hr-AQ; Mon, 01 Jul 2013 05:32:03 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWiW-0007wU-KB; Mon, 01 Jul 2013 05:32:00 +0000 Received: from mga09.intel.com ([134.134.136.24]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UtWiU-0007vx-As for linux-mtd@lists.infradead.org; Mon, 01 Jul 2013 05:31:59 +0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 30 Jun 2013 22:29:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,971,1363158000"; d="scan'208";a="338160953" Received: from linux.jf.intel.com (HELO linux.intel.com) ([10.23.219.25]) by orsmga001.jf.intel.com with ESMTP; 30 Jun 2013 22:31:36 -0700 Received: from [10.237.68.31] (sauron.fi.intel.com [10.237.68.31]) by linux.intel.com (Postfix) with ESMTP id 556916A4091; Sun, 30 Jun 2013 22:31:35 -0700 (PDT) Message-ID: <1372656948.22014.4.camel@sauron.fi.intel.com> Subject: Re: [PATCH] UBI: support ubi_num on mtd.ubi command line From: Artem Bityutskiy To: Mike Frysinger Date: Mon, 01 Jul 2013 08:35:48 +0300 In-Reply-To: <1367607323-30083-1-git-send-email-vapier@gentoo.org> References: <1367607323-30083-1-git-send-email-vapier@gentoo.org> X-Mailer: Evolution 3.6.4 (3.6.4-3.fc18) Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130701_013158_490589_E48B209D X-CRM114-Status: GOOD ( 18.93 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-5.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [134.134.136.24 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dedekind1[at]gmail.com) 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is CUSTOM_MED 0.8 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (dedekind1[at]gmail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.9 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list Cc: linux-mtd@lists.infradead.org, Adrian Hunter X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org On Fri, 2013-05-03 at 14:55 -0400, Mike Frysinger wrote: > I want to be able to add UBI volumes with specific numbers, but the > command line API doesn't have that atm. Add an additional token to > support it. > > Signed-off-by: Mike Frysinger Pushed to linux-ubi with minor tweaks: diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index 7e0b845..a350382 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -1452,8 +1452,7 @@ static int __init ubi_mtd_param_parse(const char *val, struct kernel_param *kp) int err = kstrtoint(token, 10, &p->ubi_num); if (err) { - ubi_err("bad value for ubi_num parameter: %s", - token); + ubi_err("bad value for ubi_num parameter: %s", token); return -EINVAL; } } else @@ -1470,7 +1469,7 @@ MODULE_PARM_DESC(mtd, "MTD devices to attach. Parameter format: mtd=