From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dTeKZ-0007sw-JJ for linux-mtd@lists.infradead.org; Sat, 08 Jul 2017 01:14:45 +0000 Received: by mail-pf0-x242.google.com with SMTP id z6so6512493pfk.3 for ; Fri, 07 Jul 2017 18:14:22 -0700 (PDT) Date: Fri, 7 Jul 2017 18:14:19 -0700 From: Brian Norris To: Chris Packham Cc: "linux-mtd@lists.infradead.org" , "andrew@lunn.ch" , "dwmw2@infradead.org" , "boris.brezillon@free-electrons.com" , "linux-kernel@vger.kernel.org" , Marek Vasut , Richard Weinberger , Cyrille Pitchen , David Oberhollenzer Subject: Re: [PATCH v5 3/5] mtd: handle partitioning on devices with 0 erasesize Message-ID: <20170708011419.GE55942@google.com> References: <20170602032119.22282-1-chris.packham@alliedtelesis.co.nz> <20170602032119.22282-4-chris.packham@alliedtelesis.co.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jul 04, 2017 at 03:22:52AM +0000, Chris Packham wrote: > I had someone mention to me in passing that mtdinfo was failing for them > (crashing with some floating point error). I'm wondering if we've > created a divide-by-zero problem by reporting 0 erase size in /proc/mtd. > I don't have any other info and right now I don't have access to the > system I had with the mchp23lcv1024 sram. Wouldn't be that surprising. mtdinfo is actually developed under the "ubi-utils" directory of mtd-utils, and UBI wouldn't know what to do with and SRAM like that. Brian