aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-microchip-core.c
diff options
context:
space:
mode:
authorCheng Ming Lin <[email protected]>2025-07-14 03:10:23 +0000
committerMark Brown <[email protected]>2025-07-14 13:44:00 +0000
commit710505212e3272396394f8cf78e3ddfd05df3f22 (patch)
treefe9bbe64fa2e0f32b3ac3366d3b0591b63cadc6d /drivers/pwm/pwm-microchip-core.c
parentLinux 6.16-rc5 (diff)
downloadkernel-710505212e3272396394f8cf78e3ddfd05df3f22.tar.gz
kernel-710505212e3272396394f8cf78e3ddfd05df3f22.zip
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: [email protected] Signed-off-by: Cheng Ming Lin <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-microchip-core.c')
0 files changed, 0 insertions, 0 deletions