zephyr/drivers/spi
Benjamin Valentin 8a99bd0da8 drivers: spi: spi_sam0: fix spi_sam0_fast_txrx()
The optimisation in `spi_sam0_fast_txrx()` is broken, loading
two bytes into the `DATA` register in rapid succession will lose
one byte.

This can be observed by running `tests/drivers/spi/spi_loopback`.
The test will get stuck in `spi_sam0_fast_txrx()` forever waiting
for the final byte.

Undo this small optimisation and only load the next byte into the
`DATA` register after the response has been received.

This fixes `tests/drivers/spi/spi_loopback`.

Signed-off-by: Benjamin Valentin <benpicco@googlemail.com>
2020-05-05 09:58:29 -05:00
..
CMakeLists.txt
Kconfig
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.gecko
Kconfig.litex
Kconfig.mcux_dspi
Kconfig.mcux_flexcomm
Kconfig.mcux_lpspi
Kconfig.nrfx drivers: nrf: Remove no longer suitable dependencies on Kconfig options 2020-04-03 14:47:32 +02:00
Kconfig.oc_simple
Kconfig.rv32m1_lpspi
Kconfig.sam drivers: spi: spi_sam: rework device tree support 2020-04-25 09:29:54 -05:00
Kconfig.sam0
Kconfig.sifive
Kconfig.stm32 drivers: spi: Enable dma transfer for SPI on stm32 2020-05-04 09:46:07 -05:00
Kconfig.xec_qmspi
spi_cc13xx_cc26xx.c soc: arm: replace DT_CPU_CLOCK_FREQUENCY with new dt macros 2020-04-23 23:55:37 -05:00
spi_context.h
spi_dw.c drivers: spi: spi_dw: Convert to new DT_INST macros 2020-03-30 08:29:30 -05:00
spi_dw.h
spi_dw_regs.h
spi_gecko.c drivers: Convert to use DT_INST_FOREACH 2020-03-31 19:29:22 -05:00
spi_handlers.c
spi_litespi.c drivers: Convert to use DT_INST_FOREACH 2020-03-31 19:29:22 -05:00
spi_litespi.h drivers: litex: Convert litex drivers to new DT_INST macros 2020-03-30 12:49:43 -05:00
spi_ll_stm32.c drivers: spi: control of the dma callback on spi client for stm32 2020-05-04 09:46:07 -05:00
spi_ll_stm32.h drivers: spi: Enable dma transfer for SPI on stm32 2020-05-04 09:46:07 -05:00
spi_mcux_dspi.c drivers: spi: mcux_dspi: Convert to DT_INST 2020-04-20 15:23:47 -05:00
spi_mcux_flexcomm.c drivers: spi: mcux_flexcomm: Convert to DT_INST 2020-04-20 15:23:47 -05:00
spi_mcux_lpspi.c drivers: spi: mcux_lpspi: Convert to DT_INST 2020-04-20 15:23:47 -05:00
spi_nrfx_spi.c drivers: spi: nordic: finish conversion to new DT API 2020-04-20 15:43:39 +02:00
spi_nrfx_spim.c global: Replace BUILD_ASSERT_MSG() with BUILD_ASSERT() 2020-03-31 07:18:06 +02:00
spi_nrfx_spis.c drivers: spi: nordic: finish conversion to new DT API 2020-04-20 15:43:39 +02:00
spi_oc_simple.c drivers: spi: spi_oc_simple: Convert to new DT_INST macros 2020-03-30 13:09:34 -05:00
spi_oc_simple.h
spi_rv32m1_lpspi.c drivers: spi: rv32m1_spi: Convert driver to new DT_INST macros 2020-04-10 14:38:04 -05:00
spi_sam.c drivers: spi: spi_sam: rework device tree support 2020-04-25 09:29:54 -05:00
spi_sam0.c drivers: spi: spi_sam0: fix spi_sam0_fast_txrx() 2020-05-05 09:58:29 -05:00
spi_sifive.c drivers: spi: sifive: Fix bug with checking if tx fifo is full 2020-04-23 17:28:48 +02:00
spi_sifive.h
spi_xec_qmspi.c drivers: spi: xec_qmspi: Convert to using DT_INST macros 2020-04-28 07:43:31 -05:00