aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/DMA-API.txt
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-06-26 08:49:44 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-09-17 10:32:37 -0400
commit4aa806b771d16b810771d86ce23c4c3160888db3 (patch)
tree5450d1495c1ffbb6d852df44002b95de275deb3f /Documentation/DMA-API.txt
parent272b98c6455f00884f0350f775c5342358ebb73f (diff)
DMA-API: provide a helper to set both DMA and coherent DMA masks
Provide a helper to set both the DMA and coherent DMA masks to the same value - this avoids duplicated code in a number of drivers, sometimes with buggy error handling, and also allows us identify which drivers do things differently. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'Documentation/DMA-API.txt')
-rw-r--r--Documentation/DMA-API.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/DMA-API.txt b/Documentation/DMA-API.txt
index 78a6c569d204..e865279cec58 100644
--- a/Documentation/DMA-API.txt
+++ b/Documentation/DMA-API.txt
@@ -142,6 +142,14 @@ internal API for use by the platform than an external API for use by
142driver writers. 142driver writers.
143 143
144int 144int
145dma_set_mask_and_coherent(struct device *dev, u64 mask)
146
147Checks to see if the mask is possible and updates the device
148streaming and coherent DMA mask parameters if it is.
149
150Returns: 0 if successful and a negative error if not.
151
152int
145dma_set_mask(struct device *dev, u64 mask) 153dma_set_mask(struct device *dev, u64 mask)
146 154
147Checks to see if the mask is possible and updates the device 155Checks to see if the mask is possible and updates the device