[PATCH 0/3] mtd: spi-nor: Rework Octal DTR enable methods

Tudor Ambarus posted 3 patches 4 years, 4 months ago
drivers/mtd/spi-nor/core.c      |  41 ++++++++++
drivers/mtd/spi-nor/core.h      |   4 +
drivers/mtd/spi-nor/micron-st.c | 105 +++++++++++++------------
drivers/mtd/spi-nor/spansion.c  | 135 +++++++++++++++++---------------
4 files changed, 172 insertions(+), 113 deletions(-)
[PATCH 0/3] mtd: spi-nor: Rework Octal DTR enable methods
Posted by Tudor Ambarus 4 years, 4 months ago
There are manufacturers that use registers indexed by address. Some of
them support "read/write any register" opcodes. Provide core methods that
can be used by all manufacturers.
Update the Octal DTR enable manufacturer methods: introduce templates for
register operations, use the introduced core helpers.

The series depends on:
https://lore.kernel.org/lkml/20220209133656.374903-1-tudor.ambarus@microchip.com/

Tudor Ambarus (3):
  mtd: spi-nor: core: Add helpers to read/write any register
  mtd: spi-nor: micron-st: Rework spi_nor_micron_octal_dtr_enable()
  mtd: spi-nor: spansion: Rework spi_nor_cypress_octal_dtr_enable()

 drivers/mtd/spi-nor/core.c      |  41 ++++++++++
 drivers/mtd/spi-nor/core.h      |   4 +
 drivers/mtd/spi-nor/micron-st.c | 105 +++++++++++++------------
 drivers/mtd/spi-nor/spansion.c  | 135 +++++++++++++++++---------------
 4 files changed, 172 insertions(+), 113 deletions(-)

-- 
2.25.1