[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20181121143343.11330-1-boris.brezillon@bootlin.com>
Date: Wed, 21 Nov 2018 15:33:43 +0100
From: Boris Brezillon <boris.brezillon@...tlin.com>
To: Tudor.Ambarus@...rochip.com, marek.vasut@...il.com,
dwmw2@...radead.org, computersforpeace@...il.com,
boris.brezillon@...tlin.com, richard@....at,
linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [v2] mtd: spi-nor: fix selection of uniform erase type in flexible conf
On Fri, 2018-11-16 at 17:46:37 UTC, wrote:
> There are uniform, non-uniform and flexible erase flash configurations.
>
> The non-uniform erase types, are the erase types that can _not_ erase
> the entire flash by their own.
>
> As the code was, in case flashes had flexible erase capabilities
> (support both uniform and non-uniform erase types in the same flash
> configuration) and supported multiple uniform erase type sizes, the
> code did not sort the uniform erase types, and could select a wrong
> erase type size.
>
> Sort the uniform erase mask in case of flexible erase flash
> configurations, in order to select the best uniform erase type size.
>
> Uniform, non-uniform, and flexible configurations with just a valid
> uniform erase type, are not affected by this change.
>
> Uniform erase tested on mx25l3273fm2i-08g and sst26vf064B-104i/sn.
> Non uniform erase tested on sst26vf064B-104i/sn.
>
> Fixes: 5390a8df769e ("mtd: spi-nor: add support to non-uniform SFDP SPI NOR flash memories")
> Signed-off-by: Tudor Ambarus <tudor.ambarus@...rochip.com>
Applied to http://git.infradead.org/linux-mtd.git master, thanks.
Boris
Powered by blists - more mailing lists