[PATCH v2 1/2] mtd: spi-nor: provide default erase_sector implementation

Brian Norris computersforpeace at gmail.com
Thu Nov 19 13:35:26 PST 2015


On Tue, Nov 10, 2015 at 12:15:27PM -0800, Brian Norris wrote:
> Some spi-nor drivers perform sector erase by duplicating their
> write_reg() command. Let's not require that the driver fill this out,
> and provide a default instead.
> 
> Tested on m25p80.c and Medatek's MT8173 SPI NOR flash driver.
> 
> Signed-off-by: Brian Norris <computersforpeace at gmail.com>
> ---
> v1 -> v2:
>   * use statically-sized array, with a check to make sure MAX is big enough
> 
> v1: http://lists.infradead.org/pipermail/linux-mtd/2015-October/062916.html

Pushed both to l2-mtd.git



More information about the linux-mtd mailing list