[PATCH 7/8] mtd: spi-nor: factor out write_enable() for erase commands

Marek Vasut marex at denx.de
Thu Aug 7 07:25:52 PDT 2014


On Thursday, August 07, 2014 at 03:17:01 AM, Brian Norris wrote:
> write_enable() was being duplicated to both m25p80.c and fsl-quadspi.c.
> But this should be handled within the spi-nor abstraction layer.
> 
> At the same time, let's add write_disable() after erasing, so we don't
> leave the flash in a write-enabled state afterward.
> 
> Signed-off-by: Brian Norris <computersforpeace at gmail.com>

Makes sense, thanks!

Reviewed-by: Marek Vasut <marex at denx.de>

Best regards,
Marek Vasut



More information about the linux-mtd mailing list