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

From: Neil Armstrong
Date: Wed Oct 26 2022 - 08:48:21 EST


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