From patchwork Wed Dec 6 14:43:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nam Cao X-Patchwork-Id: 752014 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="vuavcnaq"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="2GwYdPx0" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8274A1BD; Wed, 6 Dec 2023 06:43:58 -0800 (PST) From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1701873837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mAF870uQ0onfTlbiDl5VP75x4lowIYu0iaaaG3AvEnM=; b=vuavcnaqGzr2N+M1K1Kdm4ls72k288AsQrkpqzvT0Mck1T8T9L2pLSlJNaVULg25ZWBUm6 GX04rhJxiakvop13d9Ay8yxoF3bysocFzYnbh985VYacL46psHy5p9LSKXJNqhGX5ze5Qj gAwx9LMM7FuY09Dt/mneorhtU/iKr282GTkSn5IvYoMh4LNVv9Hyg09ffvKQIU83sBlFD5 ETxuQ1pgj7RqdjNZXI9shQNiE/40tRHHlesdKsb0Mdh2/18R4CI2kRKFVkn3M9mOQVYtG+ g3MkR7HiGR4j9pXw2Fyhgcpvki/S1YQasOATxhgPiQ7Ox5gg9sdZt1adO0nvAg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1701873837; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mAF870uQ0onfTlbiDl5VP75x4lowIYu0iaaaG3AvEnM=; b=2GwYdPx0vHeTwED8sPssZImual1eE0YffQ1kmhcu6FbpNhwC5lIG8ULgXBmGYZPsa5CitT FXZ/9sT56G4DqQAQ== To: broonie@kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, daniel@zonque.org Cc: Nam Cao Subject: [PATCH v2] spi: cadence: revert "Add SPI transfer delays" Date: Wed, 6 Dec 2023 15:43:51 +0100 Message-Id: <20231206144351.74492-1-namcao@linutronix.de> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The commit 855a40cd8ccc ("spi: cadence: Add SPI transfer delays") adds a delay after each transfer into the driver's transfer_one(). However, the delay is already done in SPI core. So this commit unnecessarily doubles the delay amount. Revert this commit. Signed-off-by: Nam Cao --- drivers/spi/spi-cadence.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index 12c940ba074a..bd96d8b546cd 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c @@ -451,7 +451,6 @@ static int cdns_transfer_one(struct spi_controller *ctlr, udelay(10); cdns_spi_process_fifo(xspi, xspi->tx_fifo_depth, 0); - spi_transfer_delay_exec(transfer); cdns_spi_write(xspi, CDNS_SPI_IER, CDNS_SPI_IXR_DEFAULT); return transfer->len;