commit | 05241aead9b98c28476f74e7e1c5ce480ef40ac1 | [log] [tgz] |
---|---|---|
author | Brian Norris <computersforpeace@gmail.com> | Wed Nov 05 02:29:03 2014 -0800 |
committer | Brian Norris <computersforpeace@gmail.com> | Mon Dec 01 00:19:03 2014 -0800 |
tree | bdd35583b62faa1896af2ab0121d0fdb92137f5e | |
parent | 6d7604e517bc00a36ebf7ffb4973fb72823be18c [diff] |
mtd: spi-nor: factor out write_enable() for erase commands 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> Acked-by: Huang Shijie <shijie.huang@intel.com>