Skip to content

Commit f51f86e

Browse files
jeremydickkartben
authored andcommitted
drivers: spi: spi_renesas_ra Don't stop SPI transactions early
Don't stop polled SPI transactions early if they aren't read and write Signed-off-by: Jeremy Dick <[email protected]>
1 parent f2fb6f5 commit f51f86e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/spi/spi_renesas_ra.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,7 @@ static int ra_spi_configure(const struct device *dev, const struct spi_config *c
188188

189189
static bool ra_spi_transfer_ongoing(struct ra_spi_data *data)
190190
{
191-
#if defined(CONFIG_SPI_INTERRUPT)
192191
return (spi_context_tx_on(&data->ctx) || spi_context_rx_on(&data->ctx));
193-
#else
194-
if (spi_context_total_tx_len(&data->ctx) < spi_context_total_rx_len(&data->ctx)) {
195-
return (spi_context_tx_on(&data->ctx) || spi_context_rx_on(&data->ctx));
196-
} else {
197-
return (spi_context_tx_on(&data->ctx) && spi_context_rx_on(&data->ctx));
198-
}
199-
#endif
200192
}
201193

202194
#ifndef CONFIG_SPI_INTERRUPT

0 commit comments

Comments
 (0)