From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ww0-f45.google.com ([74.125.82.45]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1QqsSI-0007fs-CS for linux-mtd@lists.infradead.org; Tue, 09 Aug 2011 19:59:15 +0000 Received: by wwi14 with SMTP id 14so312600wwi.26 for ; Tue, 09 Aug 2011 12:59:09 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <201107251148.51262.brian.foster@maxim-ic.com> <201107260921.44512.brian.foster@maxim-ic.com> Date: Tue, 9 Aug 2011 12:59:09 -0700 Message-ID: Subject: Re: [BUG] mtdinfo -a: Tries to open NULL pointer for NOR with Eraseblock Regions From: Brian Norris To: Mike Frysinger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Brian Foster , "linux-mtd@lists.infradead.org" List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Aug 9, 2011 at 10:34 AM, Mike Frysinger wrote: > 1: add region_info to sysfs > 2: add a warning --all that it could be incomplete > 3: have --all use the legacy lookup func to get /dev/mtd# > > i dont have a preference between any of these 3. =A0obviously removing > region_info support is not an option. OK, then I'll vote for option 2 and send a modification to my last patch (to include a help message). Then if someone ever makes the time to do option 1, it can fit nicely into option 2, since newer kernels would be able to give complete info and older ones would not. Brian