From patchwork Tue Sep 30 18:12:27 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Rakity X-Patchwork-Id: 2122 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 948FE474C1 for ; Wed, 1 Oct 2008 04:14:34 +1000 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1Kkji2-0003tu-QN; Tue, 30 Sep 2008 18:12:30 +0000 Received: from web58905.mail.re1.yahoo.com ([66.196.100.234]) by bombadil.infradead.org with smtp (Exim 4.68 #1 (Red Hat Linux)) id 1Kkji0-0003gW-AH for linux-mtd@lists.infradead.org; Tue, 30 Sep 2008 18:12:29 +0000 Received: (qmail 84837 invoked by uid 60001); 30 Sep 2008 18:12:27 -0000 X-YMail-OSG: 3uaDH0AVM1ly0A7rae1F5jMYYPkRX74XvQaqWiqsBR5UJgW6dB4k83AVWG1iOb.PVHmb_ClreSMpnnNkSoEhh0jyW4yq31erHxnRLQAZy1xFbiqdXRyhpFU3.bgdsUncprFNH5sSbqm1PorBpB3Lhjzmaqpe Received: from [65.219.4.5] by web58905.mail.re1.yahoo.com via HTTP; Tue, 30 Sep 2008 11:12:27 PDT X-Mailer: YahooMailRC/1096.28 YahooMailWebService/0.7.218.2 Date: Tue, 30 Sep 2008 11:12:27 -0700 (PDT) From: Philip Rakity Subject: mtdparts= documentation change To: linux-mtd@lists.infradead.org MIME-Version: 1.0 Message-ID: <392584.84807.qm@web58905.mail.re1.yahoo.com> X-Spam-Score: 0.0 (/) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Recently I tried to figure out where the name of the mtd disk came from since I was modifying cafe_nand.c to do command line parsing (patch coming for this later in the week). I could not find an explicit reference so I hacked the code to only find out that it can be easily seen by issuing the command cat /proc/mtd I know it also is in the bootup console output (now !) . The following patch would help make explicit how to find the name. signed off by Philip Rakity --- /Volumes/unix/linux-2.6.26.5/drivers/mtd/cmdlinepart.c 2008-09-08 10:40:20.000000000 -0700 +++ Desktop/cmdlinepart_new.c 2008-09-29 18:00:46.000000000 -0700 @@ -11,6 +11,7 @@ * := :[,] * := [@offset][][ro][lk] * := unique name used in mapping driver/device (mtd->name) + * eg: this is the name seen in "cat /proc/mtd/" output * := standard linux memsize OR "-" to denote all remaining space * := '(' NAME ')' *