1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-18 20:40:22 +00:00
Cheng Ming Lin 710505212e
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>
2025-07-14 14:44:00 +01:00
..
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2025-02-03 19:24:44 +00:00
2025-05-27 15:53:55 -07:00
2024-09-30 01:12:21 +02:00
2025-03-11 13:11:29 +00:00
2024-12-09 13:14:36 +00:00
2024-10-07 14:53:15 +01:00
2024-10-07 14:53:15 +01:00
2024-09-30 01:12:21 +02:00
2024-09-30 22:43:40 +01:00
2024-10-07 14:53:15 +01:00