Raspberry Pi SPI unbind fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | spi: Fix controller unregister orderdrivers/ | +2 | 5 replies | |
| 2/5 | spi: bcm2835: Fix controller unregister orderdrivers/ | +3 | 5 replies | |
| 3/5 | spi: bcm2835aux: Fix controller unregister orderdrivers/ | +3 | 0 replies | |
| 4/5 | spi: bcm2835: Tear down DMA before turning off SPI controllerdrivers/ | +2 | 0 replies | |
| 5/5 | spi: Document devm_spi_register_controller() gotchadrivers/ | +7 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Raspberry Pi SPI unbind fixes
This series fixes ordering issues occurring on unbind of the Raspberry Pi SPI drivers:
Turns out devm_spi_register_controller() is prone to incorrect use and dozens of drivers have gotten it wrong. I'm only documenting this gotcha here and fixing it in the Raspberry Pi drivers. Fixing the rest is for another day.
There's also an ordering issue in the core which has been present for 8 years and affects all platforms (patch [1/5]). Doesn't look like unbinding is tested all that often. :-)
Lukas Wunner (5):
spi: Fix controller unregister order
spi: bcm2835: Fix controller unregister order
spi: bcm2835aux: Fix controller unregister order
spi: bcm2835: Tear down DMA before turning off SPI controller
spi: Document devm_spi_register_controller() gotcha
drivers/spi/spi-bcm2835.c | 8 +++++--- drivers/spi/spi-bcm2835aux.c | 4 +++- drivers/spi/spi.c | 10 +++++++++- 3 files changed, 17 insertions(+), 5 deletions(-)
Signature · 1 line
2.26.2