summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap/linus/0049-dmaengine-provide-dummy-functions-for-DMA_ENGINE-n.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/linus/0049-dmaengine-provide-dummy-functions-for-DMA_ENGINE-n.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap/linus/0049-dmaengine-provide-dummy-functions-for-DMA_ENGINE-n.patch55
1 files changed, 55 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/linus/0049-dmaengine-provide-dummy-functions-for-DMA_ENGINE-n.patch b/extras/recipes-kernel/linux/linux-omap/linus/0049-dmaengine-provide-dummy-functions-for-DMA_ENGINE-n.patch
new file mode 100644
index 00000000..a5a0850c
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap/linus/0049-dmaengine-provide-dummy-functions-for-DMA_ENGINE-n.patch
@@ -0,0 +1,55 @@
1From 8948bfb494b67389d7ea6249b3d6e765f4500d88 Mon Sep 17 00:00:00 2001
2From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
3Date: Wed, 22 Dec 2010 14:46:46 +0100
4Subject: [PATCH 49/65] dmaengine: provide dummy functions for DMA_ENGINE=n
5
6This lets drivers, optionally using the dmaengine, build with DMA_ENGINE
7unselected.
8
9Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
10Signed-off-by: Dan Williams <dan.j.williams@intel.com>
11---
12 include/linux/dmaengine.h | 13 ++++++++++---
13 1 files changed, 10 insertions(+), 3 deletions(-)
14
15diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
16index 9d8688b..8cd00ad 100644
17--- a/include/linux/dmaengine.h
18+++ b/include/linux/dmaengine.h
19@@ -824,6 +824,8 @@ enum dma_status dma_sync_wait(struct dma_chan *chan, dma_cookie_t cookie);
20 #ifdef CONFIG_DMA_ENGINE
21 enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx);
22 void dma_issue_pending_all(void);
23+struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask, dma_filter_fn fn, void *fn_param);
24+void dma_release_channel(struct dma_chan *chan);
25 #else
26 static inline enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx)
27 {
28@@ -831,7 +833,14 @@ static inline enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descript
29 }
30 static inline void dma_issue_pending_all(void)
31 {
32- do { } while (0);
33+}
34+static inline struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask,
35+ dma_filter_fn fn, void *fn_param)
36+{
37+ return NULL;
38+}
39+static inline void dma_release_channel(struct dma_chan *chan)
40+{
41 }
42 #endif
43
44@@ -842,8 +851,6 @@ void dma_async_device_unregister(struct dma_device *device);
45 void dma_run_dependencies(struct dma_async_tx_descriptor *tx);
46 struct dma_chan *dma_find_channel(enum dma_transaction_type tx_type);
47 #define dma_request_channel(mask, x, y) __dma_request_channel(&(mask), x, y)
48-struct dma_chan *__dma_request_channel(dma_cap_mask_t *mask, dma_filter_fn fn, void *fn_param);
49-void dma_release_channel(struct dma_chan *chan);
50
51 /* --- Helper iov-locking functions --- */
52
53--
541.6.6.1
55