spi: Add KUnit coverage for DMA mapping error pathsAdd KUnit tests for the __spi_map_msg() error paths. The tests verifythat a later TX or RX mapping failure clears the mapping state ofearlier tr
spi: Add KUnit coverage for DMA mapping error pathsAdd KUnit tests for the __spi_map_msg() error paths. The tests verifythat a later TX or RX mapping failure clears the mapping state ofearlier transfers and leaves cur_{tx,rx}_dma_dev identifying thecurrent mapping device.A zero-length transfer causes sg_alloc_table() to return -EINVAL,providing deterministic failure injection without test hooks.Additional cases cover successful map/unmap and a message whichrequires no mapping.Build the DMA suite as a separate translation unit, exposing the twointernal mapping helpers only for KUnit through the local internalheader. Enable SPI in the default and all-tests KUnit configurations sothe suite is exercised there.Signed-off-by: Honghui Jiang <jiang_hh2019@163.com>Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>Link: https://patch.msgid.link/20260814031419.43378-5-jiang_hh2019@163.comSigned-off-by: Mark Brown <broonie@kernel.org>
show more ...