diff options
author | Cheng Ming Lin <chengminglin@mxic.com.tw> | 2025-07-14 06:10:23 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2025-07-14 16:44:00 +0300 |
commit | 710505212e3272396394f8cf78e3ddfd05df3f22 (patch) | |
tree | fe9bbe64fa2e0f32b3ac3366d3b0591b63cadc6d /scripts/gdb/linux/xarray.py | |
parent | d7b8f8e20813f0179d8ef519541a3527e7661d3a (diff) | |
download | linux-710505212e3272396394f8cf78e3ddfd05df3f22.tar.xz |
spi: Add check for 8-bit transfer with 8 IO mode support
The current SPI framework does not verify if the SPI device supports
8 IO mode when doing an 8-bit transfer. This patch adds a check to
ensure that if the transfer tx_nbits or rx_nbits is 8, the SPI mode must
support 8 IO. If not, an error is returned, preventing undefined behavior.
Fixes: d6a711a898672 ("spi: Fix OCTAL mode support")
Cc: stable@vger.kernel.org
Signed-off-by: Cheng Ming Lin <chengminglin@mxic.com.tw>
Link: https://patch.msgid.link/20250714031023.504752-1-linchengming884@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/xarray.py')
0 files changed, 0 insertions, 0 deletions