Skip to content
Commit 4a486ce5 authored by cyliang tw's avatar cyliang tw Committed by Dan Kalowsky
Browse files

drivers: spi: fix the update of spi_context tx & rx length



The unit of spi_context's tx_len and rx_len is byte instead of frame.
Thus, in spi_context_update_tx(), the value of ctx->tx_len should be
reduced by (len * dfs).
Also to fix the update of ctx->tx_len in spi_context_update_rx().

Signed-off-by: default avatarcyliang tw <cyliang@nuvoton.com>
parent 2bda9ad9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment