Re: [PATCH] spi: dw: Fix spi registration for controllers overriding CS

2020-11-25 Thread Mark Brown
On Fri, 20 Nov 2020 22:34:14 +0100, Lars Povlsen wrote: > When SPI DW memory ops support was introduced, there was a check for > excluding controllers which supplied their own CS function. Even so, > the mem_ops pointer is *always* presented to the SPI core. > > This causes the SPI core sanity

Re: [PATCH] spi: dw: Fix spi registration for controllers overriding CS

2020-11-25 Thread Serge Semin
Hello Lars On Fri, Nov 20, 2020 at 10:34:14PM +0100, Lars Povlsen wrote: > When SPI DW memory ops support was introduced, there was a check for > excluding controllers which supplied their own CS function. Even so, > the mem_ops pointer is *always* presented to the SPI core. > > This causes the

[PATCH] spi: dw: Fix spi registration for controllers overriding CS

2020-11-20 Thread Lars Povlsen
When SPI DW memory ops support was introduced, there was a check for excluding controllers which supplied their own CS function. Even so, the mem_ops pointer is *always* presented to the SPI core. This causes the SPI core sanity check in spi_controller_check_ops() to refuse registration, since a