]> git.ipfire.org Git - thirdparty/u-boot.git/commit
test: spi: add sandbox_spi_get_wordlen interface
authorDario Binacchi <dario.binacchi@amarulasolutions.com>
Wed, 25 Feb 2026 16:16:54 +0000 (17:16 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 30 Apr 2026 06:01:11 +0000 (08:01 +0200)
commitab5c0191e1c1def972728a6b2a0804ee8c8211e8
treeb37d6e4ea3a7c7c829ae7450507a4977617cd598
parentfa1801abc7163188b70e3eaf1a04d2fc4bcfc228
test: spi: add sandbox_spi_get_wordlen interface

Add the sandbox_spi_get_wordlen() public interface to retrieve the
internal word length state of the sandbox SPI device.

This is intended for use in sandbox SPI test cases to verify that
the word length is correctly propagated from the SPI uclass to
the driver.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Reviewed-by: Simon Glass <simon.glass@canonical.com>
arch/sandbox/include/asm/test.h
drivers/spi/sandbox_spi.c