A couple of fixes to avoid calling DMA sync API when it's not needed. This doesn't stop from discussing if IOMMU code is doing the right thing, i.e. dereferences SG list when orig_nents == 0, but this is a separate story. Andy Shevchenko (2): spi: Don't mark message DMA mapped when no transfer in it is spi: Check if transfer is mapped before calling DMA sync APIs drivers/spi/spi.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) -- 2.43.0.rc1.1336.g36b5255a03ac