zephyr/tests/drivers
Bjarki Arge Andreasen 39233656b2 tests: spi: loopback: get spi controller before timed transfer
The test which measures and validates transfer times is using the
helper spi_loopback_transceive() to perform the transfer. This
helper internally gets the spi controller, which is useful for
most tests, but for this one, it means the time to get and put
the spi controller is included in the transfer time measurement.

This commit gets the spi controller before calling
spi_loopback_transceive() which results in only the actual
transfer time being measured.

Before this commit, on the nrf54h20:

  START - test_spi_complete_multiple_timed
  Transfer took 745 us vs theoretical minimum 108 us
  Latency measurement: 637 us
   PASS - test_spi_complete_multiple_timed in 0.008 seconds

  START - test_spi_complete_multiple_timed
  Transfer took 700 us vs theoretical minimum 54 us
  Latency measurement: 646 us

      Assertion failed at ...
  Very high latency
   FAIL - test_spi_complete_multiple_timed in 0.027 seconds

After this commit:

  START - test_spi_complete_multiple_timed
  Transfer took 250 us vs theoretical minimum 108 us
  Latency measurement: 142 us
   PASS - test_spi_complete_multiple_timed in 0.008 seconds

  START - test_spi_complete_multiple_timed
  Transfer took 204 us vs theoretical minimum 54 us
  Latency measurement: 150 us
   PASS - test_spi_complete_multiple_timed in 0.008 seconds

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-10 10:23:20 -04:00
..
adc drivers: adc: siwx91x: adc_api test app support 2025-06-10 12:07:33 +02:00
audio/dmic_api tests: drivers: audio: dmic_api: Enable coverage calculation 2025-04-29 13:01:07 +02:00
bbram tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
build_all tests: drivers: build_all: virtio: add VIRTIO MMIO build test 2025-06-07 15:39:06 +01:00
can tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
charger/sbs_charger
clock_control test: drivers: clock_control_api: Fix conf file application 2025-06-04 17:03:03 +02:00
comparator tests: Add BL54L15/L15u DVK support 2025-04-23 15:02:20 +02:00
console tests: console: use printf instead 2025-05-06 15:32:46 +02:00
console_switching tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
coredump/coredump_api
counter drivers/counter: implement it51xxx counter driver 2025-06-05 12:33:29 +02:00
dac boards: mimxrt1170_evk: Enable DAC 2025-05-13 03:20:29 +02:00
disk tests: disks: disk_performance: Enabled NVMe disk to BTL-S platform 2025-05-20 15:24:18 +02:00
display/display_read_write tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
dma tests: drivers: dma: Add MAX32657 ns board overlay files 2025-06-10 08:47:42 +02:00
eeprom
entropy/api tests: drivers: entropy: api: add qemu_cortex_a53 configuration 2025-06-07 15:39:06 +01:00
espi tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
ethernet/eth_ivshmem_queue
flash tests: drivers: flash: Add support "common" for Renesas OSPI_B 2025-06-06 08:41:46 +02:00
flash_api
flash_simulator tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
fuel_gauge tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
gnss drivers: gnss: gnss_emul missing month_day data 2025-04-29 16:49:29 +02:00
gpio tests: drivers: gpio: Add support for RZ/G2UL-SMARC 2025-06-09 10:26:45 +01:00
hwinfo/api tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
i2c boards: frdm_mcxa166, frdm_mcxa276: add i2c support 2025-05-16 19:01:50 +02:00
i2s tests: drivers: i2s: Align tests to TDM peripheral 2025-06-02 13:29:10 +02:00
input tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
interrupt_controller
ipm
led/led_api
mbox tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
memc/ram tests: drivers: memc: Simplify filters 2025-06-10 13:28:48 +02:00
mipi_dsi/api
mm tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
modem/modem_socket
mspi drivers: mspi: add apollo5x MSPI controller 2025-05-07 10:33:38 +02:00
pinctrl tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
pwm tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
regulator boards: nxp: add mcx_n9xx_evk 2025-04-25 11:04:08 +02:00
reset/mmio
retained_mem/api tests: Add BL54L15/L15u DVK support 2025-04-23 15:02:20 +02:00
rtc tests: drivers: rtc: add siwg917_rb4338a board overlay and add rtc tag 2025-05-15 14:09:23 +02:00
sdhc
sensor tests: adltc2990: introduce mock_i2c_error function 2025-06-06 09:08:22 -07:00
smbus tests: drivers: smbus: Enabled smbus test for BTL-S platform 2025-05-20 15:24:18 +02:00
spi tests: spi: loopback: get spi controller before timed transfer 2025-06-10 10:23:20 -04:00
stepper tests: stepper: delete duplicate test cases 2025-05-05 14:26:02 +02:00
syscon tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
tee/optee
timer tests: drivers: Fix zassert string 2025-05-22 16:17:23 +02:00
uart tests: drivers: serial: Add support for Renesas RZ/G2UL-SMARC 2025-06-09 10:26:45 +01:00
udc
usb/bc12
video/api drivers: video: Move format pitch setting to bridge drivers 2025-05-20 18:27:35 +02:00
virtualization/ivshmem/plain tests: drivers: virtualization: qemu_kvm_arm64.overlay: fix SPDX license 2025-05-14 19:36:38 +02:00
w1/w1_api
watchdog tests: drivers: watchdog: Add intel_btl_s_crb overlay 2025-05-20 15:24:18 +02:00
wifi/nrf_wifi tests: wifi: nrf_wifi: reduce config overrides 2025-05-30 19:40:01 +02:00