[PATCH v2 0/1] spi: spi-fsl-qspi: call spi_unregister_controller

2019-03-12 Thread Volker Haspel
Changes since v1: * use devm_spi_register_controller() instead of calling spi_unregister_controller() in the remove function Thanks Volker Volker Haspel (1): spi: spi-fsl-qspi: use devm_spi_register_controller drivers/spi/spi-fsl-qspi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH v2 1/1] spi: spi-fsl-qspi: use devm_spi_register_controller

2019-03-12 Thread Volker Haspel
The driver does not clearly unregister the spi controller. Therefore calling an unbind and bind again will end up in a Kernel crash. The function devm_spi_register_controller will automatically be unregister the SPI device. Signed-off-by: Volker Haspel Signed-off-by: John Ogness --- drivers

Re: [PATCH] spi: spi-fsl-qspi: call spi_unregister_controller

2019-03-12 Thread Volker Haspel
On Mon, 11 Mar 2019 17:03:34 + Mark Brown wrote: > On Thu, Mar 07, 2019 at 11:30:08AM +0100, Volker Haspel wrote: > > The driver does not clearly unregister the spi controller. > > Therefore calling an unbind and bind again will end up in a > > Kernel crash. >

[PATCH] spi: spi-fsl-qspi: call spi_unregister_controller

2019-03-07 Thread Volker Haspel
The driver does not clearly unregister the spi controller. Therefore calling an unbind and bind again will end up in a Kernel crash. Each driver who calls spi_register_controller() in the probe function has to call spi_unregister_controller() too. Signed-off-by: Volker Haspel Signed-off-by: John