Skip to contentSkip to conversation

PCI/docs: Fix references to DMA set mask function

PATCH Applied Alex Williamson 3 participants 3 messages Apr 20, 2022 – Apr 21, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI/docs: Fix references to DMA set mask function

The function is dma_set_mask(), fix a missed instance of the old pci_set_dma_mask() and a reference to a function that doesn't exist.

Fixes 05b0ebd06ae6 ("PCI/doc: cleanup references to the legacy PCI DMA API")
---
 Documentation/PCI/pci.rst |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/PCI/pci.rst +2 -2
index 67a850b55617..cced568d78e9 100644
@@ -273,12 +273,12 @@ Set the DMA mask size
 While all drivers should explicitly indicate the DMA capability
 (e.g. 32 or 64 bit) of the PCI bus master, devices with more than
 32-bit bus master capability for streaming data need the driver
-to "register" this capability by calling pci_set_dma_mask() with
+to "register" this capability by calling dma_set_mask() with
 appropriate parameters.  In general this allows more efficient DMA
 on systems where System RAM exists above 4G _physical_ address.
 
 Drivers for all PCI-X and PCIe compliant devices must call
-set_dma_mask() as they are 64-bit DMA devices.
+dma_set_mask() as they are 64-bit DMA devices.
 
 Similarly, drivers must also "register" this capability if the device
 can directly address "coherent memory" in System RAM above 4G physical
#2 lore raw
In reply to Alex Williamson
Quoted 5 lines · Alex Williamson

The function is dma_set_mask(), fix a missed instance of the old pci_set_dma_mask() and a reference to a function that doesn't exist.

Fixes 05b0ebd06ae6 ("PCI/doc: cleanup references to the legacy PCI DMA API")

Applied to pci/misc for v5.19 with Christoph's reviewed-by, thank you!

Quoted 25 lines
---
 Documentation/PCI/pci.rst |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/PCI/pci.rst +2 -2
index 67a850b55617..cced568d78e9 100644
@@ -273,12 +273,12 @@ Set the DMA mask size
 While all drivers should explicitly indicate the DMA capability
 (e.g. 32 or 64 bit) of the PCI bus master, devices with more than
 32-bit bus master capability for streaming data need the driver
-to "register" this capability by calling pci_set_dma_mask() with
+to "register" this capability by calling dma_set_mask() with
 appropriate parameters.  In general this allows more efficient DMA
 on systems where System RAM exists above 4G _physical_ address.
 
 Drivers for all PCI-X and PCIe compliant devices must call
-set_dma_mask() as they are 64-bit DMA devices.
+dma_set_mask() as they are 64-bit DMA devices.
 
 Similarly, drivers must also "register" this capability if the device
 can directly address "coherent memory" in System RAM above 4G physical