[PATCH 0/8] mtd: spi-nor: refactor wait-till-ready

Brian Norris computersforpeace at gmail.com
Wed Aug 6 18:16:54 PDT 2014


Hi all,

This patch series tackles a few pieces of the spi-nor framework that weren't
abstracted very well. I did some limited testing on m25p80.c, and you can see
patch 8, which adds a few test BUG_ON()'s. If any of them fail for you, please
holler. I don't plan to merge that patch, although I could be convinced to
rework it if it adds value to someone...

I'm especially interested in getting test coverage on fsl-quadspi.

Thanks,
Brian

Brian Norris (8):
  mtd: spi-nor: eliminate duplicate spi_nor_wait_till_{,fsr}_ready()
    code
  mtd: spi-nor: handle timeout errors in spi_nor_write()
  mtd: spi-nor: move "wait-till-ready" checks into erase/write functions
  mtd: m25p80: drop wait-till-ready checks
  mtd: fsl-quadspi: drop wait-till-ready checks
  mtd: spi-nor: drop replaceable wait-till-ready function pointer
  mtd: spi-nor: factor out write_enable() for erase commands
  debug: mtd: spi-nor: add BUG_ON() prints to check for !ready

 drivers/mtd/devices/m25p80.c      |  17 -----
 drivers/mtd/spi-nor/fsl-quadspi.c |  16 -----
 drivers/mtd/spi-nor/spi-nor.c     | 145 ++++++++++++++++++--------------------
 include/linux/mtd/spi-nor.h       |   8 ++-
 4 files changed, 76 insertions(+), 110 deletions(-)

-- 
1.9.1




More information about the linux-mtd mailing list