[PATCH] spi: meson-spicc: move wait completion in driver to take bursts delay in account

Neil Armstrong neil.armstrong at linaro.org
Wed Oct 26 05:48:07 PDT 2022


Hi,


On 26/10/2022 14:39, Mark Brown wrote:
> On Wed, Oct 26, 2022 at 09:58:28AM +0200, Neil Armstrong wrote:
> 
>> -		spi_finalize_current_transfer(spicc->master);
>> +		complete(&spicc->done);
> 
> No, you need to call spi_finalize_current_transfer() - you need to block
> inside the transfer function if you want to open code this stuff.

It's the case, I added a wait_for_completion_timeout() + return 0 in meson_spicc_transfer_one.

Neil



More information about the linux-amlogic mailing list