zephyr/tests/drivers/spi/spi_loopback
Declan Snyder 2eb8cfb7f5 tests: spi_loopback: Fix synchronization mistakes
There are a couple things going wrong in this test code right now.

First of all, there is no syncrhonization of when the async polling
thread should start polling, causing sometimes the poll to fail on tests
before the async test ran. Add a semaphore to fix this.

The lock test was setting up a nonsense NOP transfer of 0 length.
This might cause unexpected behavior and is not the point of
this test case.
But, still we should add a seperate test case specifically for
testing this instead.

Also add a teardown function to release the locks to allow other test
cases to run in case of some failures.

Also a minor change to remove some ARG_UNUSED invocations for some
arguments that are actually used.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-04-01 04:15:31 +02:00
..
boards doc: tests: drivers: spi_loopback: frdm_rw612 add comment 2025-03-26 21:57:05 +01:00
dts/bindings
socs boards: espressif: esp32c6: Add LP Core board support 2025-03-21 17:05:20 +01:00
src tests: spi_loopback: Fix synchronization mistakes 2025-04-01 04:15:31 +02:00
sysbuild/vpr_launcher
CMakeLists.txt
Kconfig
overlay-gd32-spi-dma.conf
overlay-gd32-spi-interrupt.conf
overlay-max32-spi-dma.conf
overlay-max32-spi-rtio.conf
overlay-mcux-dspi-dma.conf
overlay-mcux-dspi-dma.overlay
overlay-mcux-flexio-spi.overlay
overlay-rpi-pico-pio.conf tests: drivers: spi: loopback: Add test for pico-spi-pio driver 2025-01-29 07:09:33 +01:00
overlay-sam-spi-dma.conf
overlay-sam-spi-dma.overlay
overlay-stm32-spi-16bits-dma-dt-nocache-mem.conf
overlay-stm32-spi-16bits-dma.conf
overlay-stm32-spi-16bits.conf
overlay-stm32-spi-16bits.overlay
overlay-stm32-spi-dma-dt-nocache-mem.conf
overlay-stm32-spi-dma.conf
overlay-stm32-spi-interrupt.conf
prj.conf
testcase.yaml tests: drivers: add overlay/testcase for silabs xg29_rb4412a board 2025-03-20 17:14:35 +01:00