diff options
author | Christoph Hellwig <hch@lst.de> | 2019-03-13 18:45:21 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-04-08 17:52:46 +0200 |
commit | d7e02a931235de0779d44c6f8d211df0eca304b8 (patch) | |
tree | 7083e3fa315feb9609d6328933e51f197035a666 /Documentation/DMA-API-HOWTO.txt | |
parent | arm: use a dummy struct device for ISA DMA use of the DMA API (diff) | |
download | linux-d7e02a931235de0779d44c6f8d211df0eca304b8.tar.xz linux-d7e02a931235de0779d44c6f8d211df0eca304b8.zip |
dma-mapping: remove leftover NULL device support
Most dma_map_ops implementations already had some issues with a NULL
device, or did simply crash if one was fed to them. Now that we have
cleaned up all the obvious offenders we can stop to pretend we
support this mode.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'Documentation/DMA-API-HOWTO.txt')
-rw-r--r-- | Documentation/DMA-API-HOWTO.txt | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Documentation/DMA-API-HOWTO.txt b/Documentation/DMA-API-HOWTO.txt index 1a721d0f35c8..0e98cf7466dd 100644 --- a/Documentation/DMA-API-HOWTO.txt +++ b/Documentation/DMA-API-HOWTO.txt @@ -365,13 +365,12 @@ __get_free_pages() (but takes size instead of a page order). If your driver needs regions sized smaller than a page, you may prefer using the dma_pool interface, described below. -The consistent DMA mapping interfaces, for non-NULL dev, will by -default return a DMA address which is 32-bit addressable. Even if the -device indicates (via DMA mask) that it may address the upper 32-bits, -consistent allocation will only return > 32-bit addresses for DMA if -the consistent DMA mask has been explicitly changed via -dma_set_coherent_mask(). This is true of the dma_pool interface as -well. +The consistent DMA mapping interfaces, will by default return a DMA address +which is 32-bit addressable. Even if the device indicates (via the DMA mask) +that it may address the upper 32-bits, consistent allocation will only +return > 32-bit addresses for DMA if the consistent DMA mask has been +explicitly changed via dma_set_coherent_mask(). This is true of the +dma_pool interface as well. dma_alloc_coherent() returns two values: the virtual address which you can use to access it from the CPU and dma_handle which you pass to the |