spi: spi-loopback-test: Add test to trigger DMA/PIO mixing
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 16 Sep 2022 11:39:48 +0000 (13:39 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 19 Sep 2022 14:44:19 +0000 (15:44 +0100)
commitb85ad8a54e0a446b3daa7f526e4996ddb6d4373f
treec32716b46a38be47b3ed776804c0eca3a87cad3e
parentf4ca8c88c2c7ea3ea17c6fdfcc1af4b007403833
spi: spi-loopback-test: Add test to trigger DMA/PIO mixing

Add a test where a small and a large transfer in a message hit the same
cache line.  This test currently fails on spi-s3c64xx on in DMA mode
since it ends up mixing DMA and PIO without proper cache maintenance.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Link: https://lore.kernel.org/r/20220916113951.228398-2-vincent.whitchurch@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-loopback-test.c