Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752627AbdGHBOX (ORCPT ); Fri, 7 Jul 2017 21:14:23 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34922 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751751AbdGHBOW (ORCPT ); Fri, 7 Jul 2017 21:14:22 -0400 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: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 571 Lines: 12 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