Skip to content

Commit 28b6acd

Browse files
rwk-gitkwilczynski
authored andcommitted
PCI: endpoint: Fix pci_epc_map map_size kerneldoc string
Because some endpoint controllers have requirements on the alignment of the controller physical memory address that must be used to map a RC PCI address region, the map PCI start address is not necessarily the desired PCI base address to be mapped. This can result in map_pci_addr being lower than pci_addr as documented. This results in map_size covering the range map_pci_addr..pci_addr+pci_size. The old text had the pci_addr twice instead of map_pci_addr..pci_addr, so replace the erroneous kerneldoc string to reflect the actual range. Link: https://lore.kernel.org/r/20241114161032.3046202-1-rick.wertenbroek@gmail.com Signed-off-by: Rick Wertenbroek <rick.wertenbroek@gmail.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
1 parent 688d2eb commit 28b6acd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/pci-epc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pci_epc_interface_string(enum pci_epc_interface_type type)
4040
* @map_pci_addr: RC PCI address used as the first address mapped (may be lower
4141
* than @pci_addr)
4242
* @map_size: size of the controller memory needed for mapping the RC PCI address
43-
* range @pci_addr..@pci_addr+@pci_size
43+
* range @map_pci_addr..@pci_addr+@pci_size
4444
* @phys_base: base physical address of the allocated EPC memory for mapping the
4545
* RC PCI address range
4646
* @phys_addr: physical address at which @pci_addr is mapped

0 commit comments

Comments
 (0)