mtd: spi-nor: move vendor specific code into vendor modules
Status from this message: Applied to spi-nor/next, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest32 patches 11 repliesApplied
- v432 patches 26 repliesSuperseded
- v332 patches 0 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 32 patches | 0 replies | Superseded | |
| v1 | 14 patches | 39 replies | Superseded |
Changes in v5 from the cover letter
- corrected doc strings of spi_nor_sr_ready_and_clear/ spansion_nor_sr_ready_and_clear and spi_nor_fsr_ready/ micron_st_nor_ready
- renamed micron_st_nor_fsr_ready() to micron_st_nor_ready()
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | mtd: spi-nor: atmel: unify function namesdrivers/ | +42 | 0 replies | |
| 2/32 | mtd: spi-nor: catalyst: unify function namesdrivers/ | +3 | 0 replies | |
| 3/32 | mtd: spi-nor: eon: unify function namesdrivers/ | +3 | 0 replies | |
| 4/32 | mtd: spi-nor: esmt: unify function namesdrivers/ | +3 | 0 replies | |
| 5/32 | mtd: spi-nor: everspin: unify function namesdrivers/ | +3 | 0 replies | |
| 6/32 | mtd: spi-nor: fujitsu: unify function namesdrivers/ | +3 | 0 replies | |
| 7/32 | mtd: spi-nor: gigadevice: unify function namesdrivers/ | +3 | 0 replies | |
| 8/32 | mtd: spi-nor: intel: unify function namesdrivers/ | +3 | 0 replies | |
| 9/32 | mtd: spi-nor: issi: unify function namesdrivers/ | +5 | 0 replies | |
| 10/32 | mtd: spi-nor: macronix: unify function namesdrivers/ | +7 | 0 replies | |
| 11/32 | mtd: spi-nor: micron-st: unify function namesdrivers/ | +17 | 3 replies | |
| 12/32 | mtd: spi-nor: spansion: unify function namesdrivers/ | +17 | 0 replies | |
| 13/32 | mtd: spi-nor: sst: unify function namesdrivers/ | +22 | 0 replies | |
| 14/32 | mtd: spi-nor: winbond: unify function namesdrivers/ | +15 | 0 replies | |
| 15/32 | mtd: spi-nor: xilinx: unify function namesdrivers/ | +9 | 0 replies | |
| 16/32 | mtd: spi-nor: xmc: unify function namesdrivers/ | +3 | 0 replies | |
| 17/32 | mtd: spi-nor: slightly refactor the spi_nor_setup()drivers/ drivers/ | +9 | 0 replies | |
| 18/32 | mtd: spi-nor: allow a flash to define its own ready() functiondrivers/ drivers/ | +8 | 0 replies | |
| 19/32 | mtd: spi-nor: export more function to be used in vendor modulesdrivers/ drivers/ | +11 | 0 replies | |
| 20/32 | mtd: spi-nor: guard _page_size parameter in S3AN_INFO()drivers/ | +2 | 0 replies | |
| 21/32 | mtd: spi-nor: move all xilinx specifics into xilinx.cdrivers/ drivers/ drivers/ +1 more | +74 | 0 replies | |
| 22/32 | mtd: spi-nor: xilinx: rename vendor specific functions and definesdrivers/ | +15 | 1 reply | |
| 23/32 | mtd: spi-nor: xilinx: correct the debug messagedrivers/ | +1 | 0 replies | |
| 24/32 | mtd: spi-nor: move all micron-st specifics into micron-st.cdrivers/ drivers/ include/ | +135 | 0 replies | |
| 25/32 | mtd: spi-nor: micron-st: convert USE_FSR to a manufacturer flagdrivers/ drivers/ drivers/ | +60 | 0 replies | |
| 26/32 | mtd: spi-nor: micron-st: rename vendor specific functions and definesdrivers/ | +9 | 4 replies | |
| 27/32 | mtd: spi-nor: spansion: slightly rework control flow in late_init()drivers/ | +6 | 0 replies | |
| 28/32 | mtd: spi-nor: move all spansion specifics into spansion.cdrivers/ drivers/ include/ | +70 | 0 replies | |
| 29/32 | mtd: spi-nor: spansion: convert USE_CLSR to a manufacturer flagdrivers/ drivers/ drivers/ | +34 | 0 replies | |
| 30/32 | mtd: spi-nor: spansion: rename vendor specific functions and definesdrivers/ | +7 | 1 reply | |
| 31/32 | mtd: spi-nor: slightly change code style in spi_nor_sr_ready()drivers/ | +2 | 1 reply | |
| 32/32 | mtd: spi-nor: renumber flagsdrivers/ | +14 | 0 replies |
Reviews trailers per patch
All 32 patches have a Reviewed-by or Acked-by.
| Patch | Pratyush Yadav | Tudor Ambarus |
|---|---|---|
| 1/32 | A-b | |
| 2/32 | A-b | |
| 3/32 | A-b | |
| 4/32 | A-b | |
| 5/32 | A-b | |
| 6/32 | A-b | |
| 7/32 | A-b | |
| 8/32 | A-b | |
| 9/32 | A-b | |
| 10/32 | A-b | |
| 11/32 | A-b | |
| 12/32 | A-b | |
| 13/32 | A-b | |
| 14/32 | A-b | |
| 15/32 | A-b | |
| 16/32 | A-b | |
| 17/32 | R-b | R-b |
| 18/32 | R-b | R-b |
| 19/32 | R-b | R-b |
| 20/32 | R-b | |
| 21/32 | R-b | R-b |
| 22/32 | R-b | |
| 23/32 | R-b | R-b |
| 24/32 | R-b T-b | |
| 25/32 | R-b T-b | R-b |
| 26/32 | T-b R-b | |
| 27/32 | R-b T-b | |
| 28/32 | R-b T-b | |
| 29/32 | R-b T-b | R-b |
| 30/32 | R-b T-b | |
| 31/32 | R-b | |
| 32/32 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 00/32] mtd: spi-nor: move vendor specific code into vendor modules
It turns out that most of the special status register handling is specific for a particular vendor. I.e. Xilinx has some different opcodes for the status register read, Micron has an additional FSR register and Spansion has these flags integrated into the SR.
Create a callback to ready() where a flash chip can register its own function. This will let us move all the vendor specific stuff out of the core into the vendor modules.
As a preparation step, unify all function and object names in the vendor modules. For the sake of consistency and better readability of the code flow, I also converted the setup() callback to be optional.
Please note that this is only compile-time tested.
Changes since v4:
- corrected doc strings of spi_nor_sr_ready_and_clear/ spansion_nor_sr_ready_and_clear and spi_nor_fsr_ready/ micron_st_nor_ready
- renamed micron_st_nor_fsr_ready() to micron_st_nor_ready()
Changes since v3:
- fix spansion.c compilation, messed up the patch export. Sorry for the noise
Changes since v2:
- use family_nor_ instead of just family_ prefix
- fix function doc
Changes since v1:
- rename/unify function names inside the vendor modules.
- make local functions static
- fix function doc typo
- use late_init hook to set fsr_ready op
- Use uppercase and period in comments
- Add comments for the vendor flags
- move coding style change in spi_nor_sr_ready() into own patch
- new patch to add missing parenthesis in S3AN_INFO()
- add missing function prefix rename patch for the spansion module
Michael Walle (32):
mtd: spi-nor: atmel: unify function names
mtd: spi-nor: catalyst: unify function names
mtd: spi-nor: eon: unify function names
mtd: spi-nor: esmt: unify function names
mtd: spi-nor: everspin: unify function names
mtd: spi-nor: fujitsu: unify function names
mtd: spi-nor: gigadevice: unify function names
mtd: spi-nor: intel: unify function names
mtd: spi-nor: issi: unify function names
mtd: spi-nor: macronix: unify function names
mtd: spi-nor: micron-st: unify function names
mtd: spi-nor: spansion: unify function names
mtd: spi-nor: sst: unify function names
mtd: spi-nor: winbond: unify function names
mtd: spi-nor: xilinx: unify function names
mtd: spi-nor: xmc: unify function names
mtd: spi-nor: slightly refactor the spi_nor_setup()
mtd: spi-nor: allow a flash to define its own ready() function
mtd: spi-nor: export more function to be used in vendor modules
mtd: spi-nor: guard _page_size parameter in S3AN_INFO()
mtd: spi-nor: move all xilinx specifics into xilinx.c
mtd: spi-nor: xilinx: rename vendor specific functions and defines
mtd: spi-nor: xilinx: correct the debug message
mtd: spi-nor: move all micron-st specifics into micron-st.c
mtd: spi-nor: micron-st: convert USE_FSR to a manufacturer flag
mtd: spi-nor: micron-st: rename vendor specific functions and defines
mtd: spi-nor: spansion: slightly rework control flow in late_init()
mtd: spi-nor: move all spansion specifics into spansion.c
mtd: spi-nor: spansion: convert USE_CLSR to a manufacturer flag
mtd: spi-nor: spansion: rename vendor specific functions and defines
mtd: spi-nor: slightly change code style in spi_nor_sr_ready()
mtd: spi-nor: renumber flags
drivers/mtd/spi-nor/atmel.c | 81 +++++----- drivers/mtd/spi-nor/catalyst.c | 6 +- drivers/mtd/spi-nor/core.c | 265 ++----------------------------- drivers/mtd/spi-nor/core.h | 70 ++++---- drivers/mtd/spi-nor/eon.c | 6 +- drivers/mtd/spi-nor/esmt.c | 6 +- drivers/mtd/spi-nor/everspin.c | 6 +- drivers/mtd/spi-nor/fujitsu.c | 6 +- drivers/mtd/spi-nor/gigadevice.c | 6 +- drivers/mtd/spi-nor/intel.c | 6 +- drivers/mtd/spi-nor/issi.c | 10 +- drivers/mtd/spi-nor/macronix.c | 14 +- drivers/mtd/spi-nor/micron-st.c | 259 ++++++++++++++++++++++++------ drivers/mtd/spi-nor/spansion.c | 168 +++++++++++++++----- drivers/mtd/spi-nor/sst.c | 44 ++--- drivers/mtd/spi-nor/winbond.c | 29 ++-- drivers/mtd/spi-nor/xilinx.c | 97 +++++++++-- drivers/mtd/spi-nor/xmc.c | 6 +- include/linux/mtd/spi-nor.h | 18 --- 19 files changed, 579 insertions(+), 524 deletions(-)
Signature · 1 line
2.30.2