diff options
| author | Jisheng Zhang <jszhang@kernel.org> | 2026-06-15 12:40:35 +0800 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-06-29 18:27:48 +0100 |
| commit | d322d820e0b0f16260e929de3f4e6b33b242c91c (patch) | |
| tree | 144934c926d79c2c558492a8f9a93a9513d031b4 /scripts/Makefile.thinlto | |
| parent | c1bab046d4786c5b17aab7c5225bf0d4a2a2d19b (diff) | |
| download | linux-d322d820e0b0f16260e929de3f4e6b33b242c91c.tar.gz linux-d322d820e0b0f16260e929de3f4e6b33b242c91c.zip | |
spi: dw: fix first spi transfer with dma always fallback to PIO
Even with proper dma engine support, the first spi transfer always
fallback to PIO, the reason is the dws->n_bytes is 0 after
initialization, so the dw_spi_can_dma() calling from __spi_map_msg()
return false, thus both tx_sg_mapped and rx_sg_mapped are false, so
for the first spi transfer, the spi_xfer_is_dma_mapped() reports false
thus fallback to PIO.
Although this brings no harm, we can simply fix this issue by
calcuating the "n_bytes" from xfer->bits_per_word.
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://patch.msgid.link/20260615044039.9750-2-jszhang@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
