From: Cosmin Tanislav Date: Mon, 1 Dec 2025 13:42:18 +0000 (+0200) Subject: spi: rzv2h-rspi: remove call to spi_finalize_current_transfer() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e4830b35dc0d522f45e1ec3ee5b1ff1648afe1b;p=thirdparty%2Fkernel%2Flinux.git spi: rzv2h-rspi: remove call to spi_finalize_current_transfer() A call to spi_finalize_current_transfer() is only needed when the SPI transfer is completed outside of the current context, when the .transfer_one() implementation returns > 0. Since the SPI transfer is completed in the current context, and we return 0 from .transfer_one(), the SPI core assumes that the transfer has completed and it does not wait for the completion variable that would be set by a call to spi_finalize_current_transfer(). Remove the call to spi_finalize_current_transfer(). Signed-off-by: Cosmin Tanislav Link: https://patch.msgid.link/20251201134229.600817-3-cosmin-gabriel.tanislav.xa@renesas.com Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-rzv2h-rspi.c b/drivers/spi/spi-rzv2h-rspi.c index 8cffc9cb6b6bf..beea4fb83d103 100644 --- a/drivers/spi/spi-rzv2h-rspi.c +++ b/drivers/spi/spi-rzv2h-rspi.c @@ -250,8 +250,6 @@ static int rzv2h_rspi_transfer_one(struct spi_controller *controller, if (ret) transfer->error = SPI_TRANS_FAIL_IO; - spi_finalize_current_transfer(controller); - return ret; }