diff options
author | Cyrille Pitchen <cyrille.pitchen@microchip.com> | 2017-06-26 15:09:59 +0200 |
---|---|---|
committer | Cyrille Pitchen <cyrille.pitchen@wedev4u.fr> | 2017-06-27 21:50:17 +0200 |
commit | 9447332ffacceeb49467ae5314887a30f6c0aaa9 (patch) | |
tree | 8df41e856f7dd4ca5b753cc8481aab0eb70bdada /kernel/module_signing.c | |
parent | 315e9c767d9a4668ad68cde1b57a14f916c90668 (diff) | |
download | talos-obmc-linux-9447332ffacceeb49467ae5314887a30f6c0aaa9.tar.gz talos-obmc-linux-9447332ffacceeb49467ae5314887a30f6c0aaa9.zip |
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>
Diffstat (limited to 'kernel/module_signing.c')
0 files changed, 0 insertions, 0 deletions