kernel_samsung_a53x/drivers/spi
Andy Shevchenko fb5720278e spi: Don't mark message DMA mapped when no transfer in it is
[ Upstream commit 9f788ba457b45b0ce422943fcec9fa35c4587764 ]

There is no need to set the DMA mapped flag of the message if it has
no mapped transfers. Moreover, it may give the code a chance to take
the wrong paths, i.e. to exercise DMA related APIs on unmapped data.
Make __spi_map_msg() to bail earlier on the above mentioned cases.

Fixes: 99adef310f68 ("spi: Provide core support for DMA mapping transfers")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20240522171018.3362521-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:10 +01:00
..
atmel-quadspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
internals.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig spi: spi-zynqmp-gqspi: fix driver kconfig dependencies 2024-11-18 12:12:20 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-altera.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-amd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-ar934x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-armada-3700.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-at91-usart.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-ath79.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-atmel.c spi: atmel: Fix PDC transfer setup bug 2024-11-18 12:12:04 +01:00
spi-au1550.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-axi-spi-engine.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-bcm-qspi.c spi: bcm-qspi: fix SFDP BFPT read by usig mspi read 2024-11-18 12:13:07 +01:00
spi-bcm-qspi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-bcm63xx-hsspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-bcm63xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-bcm2835.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-bcm2835aux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-bitbang-txrx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-bitbang.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-brcmstb-qspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-butterfly.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-cadence-quadspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-cadence.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-cavium-octeon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-cavium-thunderx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-cavium.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-cavium.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-clps711x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-coldfire-qspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-davinci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-dln2.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-dw-bt1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-dw-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-dw-dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-dw-mmio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-dw-pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-dw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-efm32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-ep93xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-falcon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-cpm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-cpm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-dspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-espi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-lib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-lib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-lpspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-qspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-fsl-spi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-geni-qcom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-hisi-sfc-v3xx.c spi: hisi-sfc-v3xx: Return IRQ_NONE if no interrupts were detected 2024-11-18 22:25:32 +01:00
spi-img-spfi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-imx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-iproc-qspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-jcore.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-lantiq-ssc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-lm70llp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-loopback-test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-lp8841-rtc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-meson-spicc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-meson-spifc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mpc52xx-psc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mpc52xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mpc512x-psc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mt65xx.c spi: spi-mt65xx: Fix NULL pointer access in interrupt handler 2024-11-19 08:45:00 +01:00
spi-mt7621.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mtk-nor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mux.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mxic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-mxs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-npcm-fiu.c spi: npcm-fiu: Fix UMA reads when dummy.nbytes == 0 2024-11-18 10:58:46 +01:00
spi-npcm-pspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-nxp-fspi.c spi: nxp-fspi: use the correct ioremap function 2024-11-18 11:42:53 +01:00
spi-oc-tiny.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-omap-100k.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-omap-uwire.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-omap2-mcspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-orion.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-pic32-sqi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-pic32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-pl022.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-ppc4xx.c spi: ppc4xx: Drop write-only variable 2024-11-18 12:13:28 +01:00
spi-pxa2xx-dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-pxa2xx-pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-pxa2xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-pxa2xx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-qcom-qspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-qup.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-rb4xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-rockchip.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-rpc-if.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-rspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-s3c24xx-regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-s3c24xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-s3c64xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sc18is602.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sh-hspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sh-msiof.c spi: sh-msiof: avoid integer overflow in constants 2024-11-18 22:25:33 +01:00
spi-sh-sci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sh.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sifive.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sirf.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-slave-mt27xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-slave-system-control.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-slave-time.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sprd-adi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sprd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-st-ssc4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-stm32-qspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-stm32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sun4i.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-sun6i.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-synquacer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-tegra20-sflash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-tegra20-slink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-tegra114.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-test.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-ti-qspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-tle62x0.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-topcliff-pch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-txx9.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-uniphier.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-xcomm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-xilinx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-xlp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-xtensa-xtfpga.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-zynq-qspi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi-zynqmp-gqspi.c Revert "spi: spi-zynqmp-gqspi: Fix runtime PM imbalance in zynqmp_qspi_probe" 2024-11-08 11:25:47 +01:00
spi.c spi: Don't mark message DMA mapped when no transfer in it is 2024-11-19 12:27:10 +01:00
spidev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00