spi: fix controller deregistration (part 1/2)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | spi: amlogic-spisg: fix controller deregistrationdrivers/ | +3 | 0 replies | |
| 2/20 | spi: aspeed-smc: fix controller deregistrationdrivers/ | +6 | 0 replies | |
| 3/20 | spi: at91-usart: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 4/20 | spi: atmel: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 5/20 | spi: bcm63xx: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 6/20 | spi: bcm63xx-hsspi: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 7/20 | spi: bcmbca-hsspi: fix controller deregistrationdrivers/ | +3 | 0 replies | |
| 8/20 | spi: octeon: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 9/20 | spi: cavium-thunderx: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 10/20 | spi: coldfire-qspi: fix controller deregistrationdrivers/ | +8 | 0 replies | |
| 11/20 | spi: dln2: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 12/20 | spi: ep93xx: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 13/20 | spi: fsl-espi: fix controller deregistrationdrivers/ | +9 | 0 replies | |
| 14/20 | spi: fsl: fix controller deregistrationdrivers/ | +7 | 1 reply | |
| 15/20 | spi: img-spfi: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 16/20 | spi: lantiq-ssc: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 17/20 | spi: meson-spicc: fix controller deregistrationdrivers/ | +7 | 0 replies | |
| 18/20 | spi: microchip-core-qspi: fix controller deregistrationdrivers/ | +8 | 3 replies | |
| 19/20 | spi: microchip-core-spi: fix controller deregistrationdrivers/ | +3 | 1 reply | |
| 20/20 | spi: mpfs: fix controller deregistrationdrivers/ | +3 | 1 reply |
Reviews trailers per patch
3 of 20 patches have a Reviewed-by or Acked-by.
| Patch | Conor Dooley |
|---|---|
| 1/20 | |
| 2/20 | |
| 3/20 | |
| 4/20 | |
| 5/20 | |
| 6/20 | |
| 7/20 | |
| 8/20 | |
| 9/20 | |
| 10/20 | |
| 11/20 | |
| 12/20 | |
| 13/20 | |
| 14/20 | |
| 15/20 | |
| 16/20 | |
| 17/20 | |
| 18/20 | A-b |
| 19/20 | A-b |
| 20/20 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/20] spi: fix controller deregistration (part 1/2)
Device managed registration generally only works if all involved resources are managed as otherwise resources may be disabled or freed while they are still in use.
This series fixes the SPI controller drivers that get this wrong by disabling resources such as clocks, DMA and interrupts while the controller (and its devices) are still registered, which can lead to issues like system errors due to unclocked accesses, NULL-pointer dereferences, hangs or just prevent SPI device drivers from doing I/O during during deregistration (e.g. to power down devices).
I decided to split these fixes in two parts consisting of 20 and 26 patches respectively in order not to spam the lists too much.
I've also prepared a follow-on series to convert the drivers here that do not yet use device managed controller allocation (which avoids taking extra references during deregistration).
After that it should be possible to change the SPI API so that it no longer drops a reference during deregistration without too much effort (cf. [1]).
Note that this series is based on spi/for-next.
Johan
[1] https://lore.kernel.org/lkml/[email protected]/
Johan Hovold (20):
spi: amlogic-spisg: fix controller deregistration
spi: aspeed-smc: fix controller deregistration
spi: at91-usart: fix controller deregistration
spi: atmel: fix controller deregistration
spi: bcm63xx: fix controller deregistration
spi: bcm63xx-hsspi: fix controller deregistration
spi: bcmbca-hsspi: fix controller deregistration
spi: octeon: fix controller deregistration
spi: cavium-thunderx: fix controller deregistration
spi: coldfire-qspi: fix controller deregistration
spi: dln2: fix controller deregistration
spi: ep93xx: fix controller deregistration
spi: fsl-espi: fix controller deregistration
spi: fsl: fix controller deregistration
spi: img-spfi: fix controller deregistration
spi: lantiq-ssc: fix controller deregistration
spi: meson-spicc: fix controller deregistration
spi: microchip-core-qspi: fix controller deregistration
spi: microchip-core-spi: fix controller deregistration
spi: mpfs: fix controller deregistration
drivers/spi/spi-amlogic-spisg.c | 4 +++- drivers/spi/spi-aspeed-smc.c | 9 ++++++--- drivers/spi/spi-at91-usart.c | 8 +++++++- drivers/spi/spi-atmel.c | 8 +++++++- drivers/spi/spi-bcm63xx-hsspi.c | 8 +++++++- drivers/spi/spi-bcm63xx.c | 8 +++++++- drivers/spi/spi-bcmbca-hsspi.c | 4 +++- drivers/spi/spi-cavium-octeon.c | 8 +++++++- drivers/spi/spi-cavium-thunderx.c | 8 +++++++- drivers/spi/spi-coldfire-qspi.c | 10 ++++++++-- drivers/spi/spi-dln2.c | 8 +++++++- drivers/spi/spi-ep93xx.c | 8 +++++++- drivers/spi/spi-fsl-espi.c | 10 +++++++++- drivers/spi/spi-fsl-spi.c | 8 +++++++- drivers/spi/spi-img-spfi.c | 8 +++++++- drivers/spi/spi-lantiq-ssc.c | 8 +++++++- drivers/spi/spi-meson-spicc.c | 8 +++++++- drivers/spi/spi-microchip-core-qspi.c | 12 ++++++++---- drivers/spi/spi-microchip-core-spi.c | 4 +++- drivers/spi/spi-mpfs.c | 4 +++- 20 files changed, 127 insertions(+), 26 deletions(-)
Signature · 1 line
2.52.0