spi: dw: Cleanup macros/funcs naming and add IP-core version support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest7 patches 4 repliesIn review
- v26 patches 8 repliesSuperseded
- v14 patches 11 repliesSuperseded
Changes in v3 from the cover letter
- Discard the symbols importing from the spi-dw-dma object since it's linked into the spi-dw-core module anyway thus having the same symbols namespace.
- Move the DW_SPI_CAP_DFS32 capability flag position fix to a separate patch.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | spi: dw: Add a symbols namespace for the core moduledrivers/ drivers/ drivers/ +2 more | +13 | 0 replies | |
| 2/7 | spi: dw: Discard redundant DW SSI Frame Formats enumerationdrivers/ drivers/ | +5 | 0 replies | |
| 3/7 | spi: dw: Put the driver entities naming in orderdrivers/ drivers/ drivers/ +3 more | +211 | 0 replies | |
| 4/7 | spi: dw: Convert to using the Bitfield access macrosdrivers/ drivers/ | +50 | 0 replies | |
| 5/7 | spi: dw: Introduce Synopsys IP-core versions interfacedrivers/ drivers/ | +42 | 0 replies | |
| 6/7 | spi: dw: Replace DWC_HSSI capability with IP-core version checkerdrivers/ drivers/ drivers/ | +7 | 0 replies | |
| 7/7 | spi: dw: Define the capabilities in a continuous bit-flags setdrivers/ | +1 | 2 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Andy Shevchenko |
|---|---|
| 1/7 | R-b |
| 2/7 | R-b |
| 3/7 | R-b |
| 4/7 | R-b |
| 5/7 | R-b |
| 6/7 | R-b |
| 7/7 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/7] spi: dw: Cleanup macros/funcs naming and add IP-core version support
I was going to submit a cleanup patchset for the DW SSI driver for a long time, but due to lack of free time couldn't make it so far. Nandhini's series [1] made me to proceed with this task so mate would finally have his patchset accepted and merged into the mainline kernel.
There are four cleanup patches here and three feature patches. In the framework of the former patches we convert the DW SPI driver to using module namespaces and provide a better code organization. In particular the second part concerns the methods and macros naming unification (using a unified prefixes of the code object names) and the CSR fields macro implementation using the bitfield helpers available in the kernel. The later patches introduce the DW SSI IP-core versions interface so it could be used for a version-specific features implementation. Nandhini will be mostly interested in the later patches in the framework of his series [1].
Nandhini, could you please test the patchset out on your DWC SSI hardware? After it's merged into the spi/for-next branch of the Mark' repository you will be able to rebase your series on top of it and use the last IP-core version interface for your benefit.
Andy, I have added your tag to all the patches except the last one since it's new (though suggested by you).
[1] https://lore.kernel.org/linux-spi/[email protected]
Changelog v2:
- Replace "assi" suffixes with "pssi" in the spi-dw-mmio.c methods. (Thanks Andy for noticing this pity mistake)
- Add new patches:
[PATCH v2 6/6] spi: dw: Replace DWC_HSSI capability with IP-core version checker [PATCH v2 1/6] spi: dw: Add symbol namespaces for the core and DMA modules
- Replace the ASCII-to-integer conversion with a unified IP-core versioning interface (Suggested by Andy).
Changelog v3:
- Discard the symbols importing from the spi-dw-dma object since it's linked into the spi-dw-core module anyway thus having the same symbols namespace.
- Move the DW_SPI_CAP_DFS32 capability flag position fix to a separate patch.
Serge Semin (7):
spi: dw: Add a symbols namespace for the core module
spi: dw: Discard redundant DW SSI Frame Formats enumeration
spi: dw: Put the driver entities naming in order
spi: dw: Convert to using the Bitfield access macros
spi: dw: Introduce Synopsys IP-core versions interface
spi: dw: Replace DWC_HSSI capability with IP-core version checker
spi: dw: Define the capabilities in a continuous bit-flags set
drivers/spi/spi-dw-bt1.c | 9 +- drivers/spi/spi-dw-core.c | 175 ++++++++++++++++++++---------------- drivers/spi/spi-dw-dma.c | 55 ++++++------ drivers/spi/spi-dw-mmio.c | 22 ++--- drivers/spi/spi-dw-pci.c | 60 ++++++------- drivers/spi/spi-dw.h | 182 ++++++++++++++++++++------------------ 6 files changed, 271 insertions(+), 232 deletions(-)
Signature · 1 line
2.33.0