Files
linux-st/drivers/spi
Alain Volmat 2d760de2d0 spi: stm32: make SPI_MASTER_MUST_TX flags only specific to STM32F4
Commit 61367d0b8f ("spi: stm32: Add 'SPI_SIMPLEX_RX', 'SPI_3WIRE_RX' support for stm32f4")
allowed to properly communicate with the st-gyro-spi even when
there is no tx_buf provided by setting the flag SPI_MASTER_MUST_TX and
thus forcing a dummy TX buffer to work in Full Duplex.
This behavior should kept only for the STM32F4 and not for other
compatible since the STM32H7 do support SIMPLEX_RX and SIMPLEX_TX.
Add the flags variable within the struct stm32_spi_cfg so that flags
used at master registration time are compatible specific.

Fixes: 61367d0b8f ("spi: stm32: Add 'SPI_SIMPLEX_RX', 'SPI_3WIRE_RX' support for stm32f4")

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Change-Id: I5620ad12edf608bb761c5cabd4848ff56edbcbe8
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/235712
Reviewed-by: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Reviewed-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/260233
Tested-by: Amelie DELAUNAY <amelie.delaunay@foss.st.com>
2022-10-12 10:46:00 +02:00
..
2022-04-08 14:22:53 +02:00
2021-08-26 12:09:38 +01:00
2021-09-27 12:59:15 +01:00