Message ID | 20240618132951.2743935-3-patrice.chotard@foss.st.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 63deee52811b2f84ed2da55ad47252f0e8145d62 |
Headers | show |
Series | spi: OCTAL mode fixes | expand |
diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c index 6944e85d8367..955c920c4b63 100644 --- a/drivers/spi/spi-stm32-qspi.c +++ b/drivers/spi/spi-stm32-qspi.c @@ -349,7 +349,7 @@ static int stm32_qspi_wait_poll_status(struct stm32_qspi *qspi) static int stm32_qspi_get_mode(u8 buswidth) { - if (buswidth == 4) + if (buswidth >= 4) return CCR_BUSWIDTH_4; return buswidth;