aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2021-06-25 10:52:11 +0530
committerMark Brown <broonie@kernel.org>2021-06-25 12:26:49 +0100
commitb470e10eb43f19e08245cd87dd3192a8141cfbb5 (patch)
treea773f13ce4c5fa815d661534cd3aadf75b7509a3 /include/linux/spi
parentspi: convert Xilinx Zynq UltraScale+ MPSoC GQSPI bindings to YAML (diff)
downloadlinux-dev-b470e10eb43f19e08245cd87dd3192a8141cfbb5.tar.xz
linux-dev-b470e10eb43f19e08245cd87dd3192a8141cfbb5.zip
spi: core: add dma_map_dev for dma device
Some controllers like qcom geni need the parent device to be used for dma mapping, so add a dma_map_dev field and let drivers fill this to be used as mapping device Signed-off-by: Vinod Koul <vkoul@kernel.org> Link: https://lore.kernel.org/r/20210625052213.32260-4-vkoul@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h
index 3ada36175e5f..97b8d12b5f2b 100644
--- a/include/linux/spi/spi.h
+++ b/include/linux/spi/spi.h
@@ -588,6 +588,7 @@ struct spi_controller {
bool (*can_dma)(struct spi_controller *ctlr,
struct spi_device *spi,
struct spi_transfer *xfer);
+ struct device *dma_map_dev;
/*
* These hooks are for drivers that want to use the generic