Re: [PATCH v2] mtd: spi-nor: factor out write_enable() for erase commands

Huang Shijie
2014-11-06T03:40:33Z

On Wed, Nov 05, 2014 at 02:29:03AM -0800, 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@gmail.com>
thanks

Acked-by: Huang Shijie <shijie.huang@intel.com>