summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHao-Qun Huang <alvinhuang0603@gmail.com>2026-09-13 03:20:49 +0800
committerMark Brown <broonie@kernel.org>2026-09-15 17:37:50 +0100
commit095858324f063dba830041f067872f0a08765d2f (patch)
tree9792711aeb535a88e0ac4f265cb70748f1e2d524 /tools/perf/scripts/python
parent930a7312c946bf4731721cadd82bb9a2ada496ca (diff)
downloadlinux-next-095858324f063dba830041f067872f0a08765d2f.tar.gz
linux-next-095858324f063dba830041f067872f0a08765d2f.zip
spi: virtio: Use the per-transfer bits per word
virtio_spi_transfer_one() puts spi->bits_per_word into the request header, so a transfer that sets its own word size reaches the backend with the device default instead. The SPI core has already copied that default into xfer->bits_per_word when the transfer leaves it at zero, the same way it does for xfer->speed_hz, which this function already uses. Per-transfer word sizes are ordinary SPI usage. mipi_dbi, for one, sends a 9-bit command and reads the reply as 8-bit data in the same message. With a 16-bit device default, a one-byte transfer asking for 8 bits goes out as a partial 16-bit word, which the backend may reject. Fixes: f98cabe3f6cf ("SPI: Add virtio SPI driver") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Hao-Qun Huang <alvinhuang0603@gmail.com> Link: https://patch.msgid.link/20260913032049.11209.alvinhuang0603@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions