]> git.baikalelectronics.ru Git - kernel.git/commit
spi: stm32: ignore Rx queue not empty in stm32f4 Tx only mode
authorAhmad Fatoum <a.fatoum@pengutronix.de>
Tue, 1 Feb 2022 11:51:41 +0000 (12:51 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 22 Feb 2022 11:56:39 +0000 (11:56 +0000)
commit91672afbd47efe68ebb23eeb195cd3b85086c77a
tree079c1d5b5703ccac5215c6f8ce1d5b868571797b
parent0193bfb72b08fc1d027c5b2209c082c6d506ed76
spi: stm32: ignore Rx queue not empty in stm32f4 Tx only mode

STM32F4_SPI_SR_RXNE and STM32F4_SPI_SR_OVR are distinct bits in the same
status register.  ~STM32F4_SPI_SR_OVR | STM32F4_SPI_SR_RXNE is thus
equal to ~STM32F4_SPI_SR_OVR.

The original intention was likely for transmission-only transfers to
ignore interrupts both for when the Rx queue has bytes (RXNE) as well
as when these bytes haven't been read in time (OVR).

Fix the typo by adding the missing parenthesis.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.kernel.org/r/20220201115142.3999860-1-a.fatoum@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32.c