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(-) -- 2.26.2