alistair23-linux/drivers/mtd/devices
Cyrille Pitchen 9447332ffa mtd: st_spi_fsm: remove SPINOR_OP_RDSR2 and use SPINOR_OP_RDCR instead
The 35h instruction op code has two aliases/macro definitions:
- SPINOR_OP_RDCR from include/linux/mtd/spi-nor.h
- SPINOR_OP_RDSR2 from drivers/mtd/devices/serial_flash_cmds.h

Actually, some manufacturers name the associated internal register Status
Register 2 whereas other manufacturers name it Configuration Register
hence the two different macros for the very same instruction op code.

Since the spi-nor.h file is the reference file for all SPI NOR instruction
op codes, this patch removes the definition of the SPINOR_OP_RDSR2 macro.

Also the SPINOR_OP_RDSR2 macro will be associated to another instruction
op code in a further patch so we need to avoid a conflict defining this
macro twice. Indeed the JESD216 rev B specification, defining the SFDP
tables, also refers to the 3Eh and 3Fh instruction op codes to write/read
the Status Register 2 on some SPI NOR flash memories, the 35h op code
still being used to read the Configuration Register/Status Register 2 on
other memories.

Signed-off-by: Cyrille Pitchen <cyrille.pitchen@microchip.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
2017-06-27 21:50:17 +02:00
..
bcm47xxsflash.c mtd: bcm47xxsflash: support reading flash out of mapping window 2017-02-08 15:07:59 -08:00
bcm47xxsflash.h mtd: bcm47xxsflash: support reading flash out of mapping window 2017-02-08 15:07:59 -08:00
block2mtd.c mm, fs: get rid of PAGE_CACHE_* and page_cache_{get,release} macros 2016-04-04 10:41:08 -07:00
docg3.c mtd: docg3: switch to mtd_ooblayout_ops 2016-04-19 22:05:56 +02:00
docg3.h
Kconfig MTD updates for v4.8: 2016-08-02 17:05:11 -04:00
lart.c ARM: 8638/1: mtd: lart: Rename partition defines to be prefixed with PART_ 2017-02-28 11:05:46 +00:00
m25p80.c mtd: m25p80: add support of SPI 1-2-2 and 1-4-4 protocols 2017-05-15 21:56:17 +02:00
Makefile
ms02-nv.c
ms02-nv.h
mtd_dataflash.c Linux 4.4-rc1 2015-11-15 20:31:29 -08:00
mtdram.c mtd: mtdram: Add parameter for setting writebuf size 2016-03-07 13:06:27 -08:00
phram.c
pmc551.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
powernv_flash.c powerpc/opal: Add inline function to get rc from an ASYNC_COMP opal_msg 2016-06-29 17:33:18 +10:00
serial_flash_cmds.h mtd: st_spi_fsm: remove SPINOR_OP_RDSR2 and use SPINOR_OP_RDCR instead 2017-06-27 21:50:17 +02:00
slram.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
spear_smi.c mtd: drop unnecessary partition parser data 2015-11-11 13:58:59 -08:00
sst25l.c
st_spi_fsm.c mtd: st_spi_fsm: remove SPINOR_OP_RDSR2 and use SPINOR_OP_RDCR instead 2017-06-27 21:50:17 +02:00