Skip to content

Commit

Permalink
doc: fix an incorrect suggestion to pass NULL for PCI like buses
Browse files Browse the repository at this point in the history
Fix an incorrect suggestion to pass NULL to pci_alloc_consistent
for PCI like buses where devices don't have struct pci_dev (like ISA, EISA).

Signed-off-by: Matti Linnanvuori <mattilinnanvuori@yahoo.com>
Acked-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jesse Barnes <jbarnes@hobbes.lan>
  • Loading branch information
Matti Linnanvuori authored and Jesse Barnes committed Apr 28, 2008
1 parent 819e323 commit 97a34eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Documentation/DMA-mapping.txt
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@ you should do:

cpu_addr = pci_alloc_consistent(pdev, size, &dma_handle);

where pdev is a struct pci_dev *. You should pass NULL for PCI like buses
where devices don't have struct pci_dev (like ISA, EISA). This may be
called in interrupt context.
where pdev is a struct pci_dev *. This may be called in interrupt context.
You should use dma_alloc_coherent (see DMA-API.txt) for buses
where devices don't have struct pci_dev (like ISA, EISA).

This argument is needed because the DMA translations may be bus
specific (and often is private to the bus which the device is attached
Expand Down

0 comments on commit 97a34eb

Please sign in to comment.