diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-06-26 08:49:44 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-09-17 10:32:37 -0400 |
commit | 4aa806b771d16b810771d86ce23c4c3160888db3 (patch) | |
tree | 5450d1495c1ffbb6d852df44002b95de275deb3f /Documentation/DMA-API.txt | |
parent | 272b98c6455f00884f0350f775c5342358ebb73f (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.txt | 8 |
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 | |||
142 | driver writers. | 142 | driver writers. |
143 | 143 | ||
144 | int | 144 | int |
145 | dma_set_mask_and_coherent(struct device *dev, u64 mask) | ||
146 | |||
147 | Checks to see if the mask is possible and updates the device | ||
148 | streaming and coherent DMA mask parameters if it is. | ||
149 | |||
150 | Returns: 0 if successful and a negative error if not. | ||
151 | |||
152 | int | ||
145 | dma_set_mask(struct device *dev, u64 mask) | 153 | dma_set_mask(struct device *dev, u64 mask) |
146 | 154 | ||
147 | Checks to see if the mask is possible and updates the device | 155 | Checks to see if the mask is possible and updates the device |