Re: [PATCH] spi: stm32: drop devres version of spi_register_master

2021-03-18 Thread Alain Volmat
Hi Lukas, On Tue, Mar 16, 2021 at 10:17:44PM +0100, Lukas Wunner wrote: > On Fri, Mar 12, 2021 at 11:34:46AM +0100, Alain Volmat wrote: > > --- a/drivers/spi/spi-stm32.c > > +++ b/drivers/spi/spi-stm32.c > > @@ -1960,6 +1960,7 @@ static int stm32_spi_remove(struct platform_device > > *pdev) > >

Re: [PATCH] spi: stm32: drop devres version of spi_register_master

2021-03-16 Thread Lukas Wunner
On Fri, Mar 12, 2021 at 11:34:46AM +0100, Alain Volmat wrote: > --- a/drivers/spi/spi-stm32.c > +++ b/drivers/spi/spi-stm32.c > @@ -1960,6 +1960,7 @@ static int stm32_spi_remove(struct platform_device > *pdev) > struct spi_master *master = platform_get_drvdata(pdev); > struct stm32_spi

Re: [PATCH] spi: stm32: drop devres version of spi_register_master

2021-03-12 Thread Mark Brown
On Fri, 12 Mar 2021 11:34:46 +0100, Alain Volmat wrote: > A call to spi_unregister_master() triggers calling remove() > for all the spi devices binded to the spi master. > > Some spi device driver requires to "talk" with the spi device > during the remove(), e.g.: > - a LCD panel like drivers/gpu/

[PATCH] spi: stm32: drop devres version of spi_register_master

2021-03-12 Thread Alain Volmat
From: Antonio Borneo A call to spi_unregister_master() triggers calling remove() for all the spi devices binded to the spi master. Some spi device driver requires to "talk" with the spi device during the remove(), e.g.: - a LCD panel like drivers/gpu/drm/panel/panel-lg-lg4573.c will turn off t