Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: Fix kernel-doc errors

Fix kernel-doc formatting errors, function names that don't match the doc,
and some missing parameter documentation. These are reported by:

make W=1 drivers/pci/

No functional change intended.

[bhelgaas: squashed into one patch since this only changes comments]
Link: https://lore.kernel.org/r/20210311001724.423356-1-kw@linux.com
Link: https://lore.kernel.org/r/20210311001724.423356-2-kw@linux.com
Link: https://lore.kernel.org/r/20210311001724.423356-3-kw@linux.com
Link: https://lore.kernel.org/r/20210311001724.423356-4-kw@linux.com
Link: https://lore.kernel.org/r/20210311001724.423356-5-kw@linux.com
Link: https://lore.kernel.org/r/20210311001724.423356-6-kw@linux.com
Link: https://lore.kernel.org/r/20210311001724.423356-7-kw@linux.com
Link: https://lore.kernel.org/r/20210311001724.423356-8-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Krzysztof Wilczyński and committed by
Bjorn Helgaas
43395d9e a38fd874

+47 -20
+1 -1
drivers/pci/ats.c
··· 480 480 #define PASID_NUMBER_SHIFT 8 481 481 #define PASID_NUMBER_MASK (0x1f << PASID_NUMBER_SHIFT) 482 482 /** 483 - * pci_max_pasid - Get maximum number of PASIDs supported by device 483 + * pci_max_pasids - Get maximum number of PASIDs supported by device 484 484 * @pdev: PCI device structure 485 485 * 486 486 * Returns negative value when PASID capability is not present.
+1 -1
drivers/pci/controller/cadence/pci-j721e.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - /** 2 + /* 3 3 * pci-j721e - PCIe controller driver for TI's J721E SoCs 4 4 * 5 5 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com
+8 -3
drivers/pci/controller/dwc/pci-keystone.c
··· 346 346 }; 347 347 348 348 /** 349 - * ks_pcie_set_dbi_mode() - Set DBI mode to access overlaid BAR mask 350 - * registers 349 + * ks_pcie_set_dbi_mode() - Set DBI mode to access overlaid BAR mask registers 350 + * @ks_pcie: A pointer to the keystone_pcie structure which holds the KeyStone 351 + * PCIe host controller driver information. 351 352 * 352 353 * Since modification of dbi_cs2 involves different clock domain, read the 353 354 * status back to ensure the transition is complete. ··· 368 367 369 368 /** 370 369 * ks_pcie_clear_dbi_mode() - Disable DBI mode 370 + * @ks_pcie: A pointer to the keystone_pcie structure which holds the KeyStone 371 + * PCIe host controller driver information. 371 372 * 372 373 * Since modification of dbi_cs2 involves different clock domain, read the 373 374 * status back to ensure the transition is complete. ··· 452 449 453 450 /** 454 451 * ks_pcie_v3_65_add_bus() - keystone add_bus post initialization 452 + * @bus: A pointer to the PCI bus structure. 455 453 * 456 454 * This sets BAR0 to enable inbound access for MSI_IRQ register 457 455 */ ··· 492 488 493 489 /** 494 490 * ks_pcie_link_up() - Check if link up 491 + * @pci: A pointer to the dw_pcie structure which holds the DesignWare PCIe host 492 + * controller driver information. 495 493 */ 496 494 static int ks_pcie_link_up(struct dw_pcie *pci) 497 495 { ··· 611 605 612 606 /** 613 607 * ks_pcie_legacy_irq_handler() - Handle legacy interrupt 614 - * @irq: IRQ line for legacy interrupts 615 608 * @desc: Pointer to irq descriptor 616 609 * 617 610 * Traverse through pending legacy interrupts and invoke handler for each. Also
+11 -5
drivers/pci/endpoint/functions/pci-epf-ntb.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - /** 2 + /* 3 3 * Endpoint Function Driver to implement Non-Transparent Bridge functionality 4 4 * 5 5 * Copyright (C) 2020 Texas Instruments ··· 696 696 697 697 /** 698 698 * epf_ntb_peer_spad_bar_clear() - Clear Peer Scratchpad BAR 699 - * @ntb: NTB device that facilitates communication between HOST1 and HOST2 699 + * @ntb_epc: EPC associated with one of the HOST which holds peer's outbound 700 + * address. 700 701 * 701 702 *+-----------------+------->+------------------+ +-----------------+ 702 703 *| BAR0 | | CONFIG REGION | | BAR0 | ··· 741 740 /** 742 741 * epf_ntb_peer_spad_bar_set() - Set peer scratchpad BAR 743 742 * @ntb: NTB device that facilitates communication between HOST1 and HOST2 743 + * @type: PRIMARY interface or SECONDARY interface 744 744 * 745 745 *+-----------------+------->+------------------+ +-----------------+ 746 746 *| BAR0 | | CONFIG REGION | | BAR0 | ··· 810 808 811 809 /** 812 810 * epf_ntb_config_sspad_bar_clear() - Clear Config + Self scratchpad BAR 813 - * @ntb: NTB device that facilitates communication between HOST1 and HOST2 811 + * @ntb_epc: EPC associated with one of the HOST which holds peer's outbound 812 + * address. 814 813 * 815 814 * +-----------------+------->+------------------+ +-----------------+ 816 815 * | BAR0 | | CONFIG REGION | | BAR0 | ··· 854 851 855 852 /** 856 853 * epf_ntb_config_sspad_bar_set() - Set Config + Self scratchpad BAR 857 - * @ntb: NTB device that facilitates communication between HOST1 and HOST2 854 + * @ntb_epc: EPC associated with one of the HOST which holds peer's outbound 855 + * address. 858 856 * 859 857 * +-----------------+------->+------------------+ +-----------------+ 860 858 * | BAR0 | | CONFIG REGION | | BAR0 | ··· 1316 1312 1317 1313 /** 1318 1314 * epf_ntb_alloc_peer_mem() - Allocate memory in peer's outbound address space 1315 + * @dev: The PCI device. 1319 1316 * @ntb_epc: EPC associated with one of the HOST whose BAR holds peer's outbound 1320 1317 * address 1321 1318 * @bar: BAR of @ntb_epc in for which memory has to be allocated (could be ··· 1665 1660 * epf_ntb_init_epc_bar() - Identify BARs to be used for each of the NTB 1666 1661 * constructs (scratchpad region, doorbell, memorywindow) 1667 1662 * @ntb: NTB device that facilitates communication between HOST1 and HOST2 1668 - * @type: PRIMARY interface or SECONDARY interface 1669 1663 * 1670 1664 * Wrapper to epf_ntb_init_epc_bar_interface() to identify the free BARs 1671 1665 * to be used for each of BAR_CONFIG, BAR_PEER_SPAD, BAR_DB_MW1, BAR_MW2, ··· 2041 2037 /** 2042 2038 * epf_ntb_add_cfs() - Add configfs directory specific to NTB 2043 2039 * @epf: NTB endpoint function device 2040 + * @group: A pointer to the config_group structure referencing a group of 2041 + * config_items of a specific type that belong to a specific sub-system. 2044 2042 * 2045 2043 * Add configfs directory specific to NTB. This directory will hold 2046 2044 * NTB specific properties like db_count, spad_count, num_mws etc.,
+1 -1
drivers/pci/endpoint/functions/pci-epf-test.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 - /** 2 + /* 3 3 * Test driver to test endpoint functionality 4 4 * 5 5 * Copyright (C) 2017 Texas Instruments
+2
drivers/pci/endpoint/pci-epc-core.c
··· 594 594 * pci_epc_remove_epf() - remove PCI endpoint function from endpoint controller 595 595 * @epc: the EPC device from which the endpoint function should be removed 596 596 * @epf: the endpoint function to be removed 597 + * @type: identifies if the EPC is connected to the primary or secondary 598 + * interface of EPF 597 599 * 598 600 * Invoke to remove PCI endpoint function from the endpoint controller. 599 601 */
+1 -1
drivers/pci/hotplug/acpi_pcihp.c
··· 157 157 } 158 158 159 159 /** 160 - * acpi_pcihp_check_ejectable - check if handle is ejectable ACPI PCI slot 160 + * acpi_pci_check_ejectable - check if handle is ejectable ACPI PCI slot 161 161 * @pbus: the PCI bus of the PCI slot corresponding to 'handle' 162 162 * @handle: ACPI handle to check 163 163 *
+18 -4
drivers/pci/of.c
··· 190 190 EXPORT_SYMBOL_GPL(of_pci_parse_bus_range); 191 191 192 192 /** 193 - * This function will try to obtain the host bridge domain number by 194 - * finding a property called "linux,pci-domain" of the given device node. 193 + * of_get_pci_domain_nr - Find the host bridge domain number 194 + * of the given device node. 195 + * @node: Device tree node with the domain information. 195 196 * 196 - * @node: device tree node with the domain information 197 + * This function will try to obtain the host bridge domain number by finding 198 + * a property called "linux,pci-domain" of the given device node. 199 + * 200 + * Return: 201 + * * > 0 - On success, an associated domain number. 202 + * * -EINVAL - The property "linux,pci-domain" does not exist. 203 + * * -ENODATA - The linux,pci-domain" property does not have value. 204 + * * -EOVERFLOW - Invalid "linux,pci-domain" property value. 197 205 * 198 206 * Returns the associated domain number from DT in the range [0-0xffff], or 199 207 * a negative value if the required property is not found. ··· 593 585 #endif /* CONFIG_PCI */ 594 586 595 587 /** 588 + * of_pci_get_max_link_speed - Find the maximum link speed of the given device node. 589 + * @node: Device tree node with the maximum link speed information. 590 + * 596 591 * This function will try to find the limitation of link speed by finding 597 592 * a property called "max-link-speed" of the given device node. 598 593 * 599 - * @node: device tree node with the max link speed information 594 + * Return: 595 + * * > 0 - On success, a maximum link speed. 596 + * * -EINVAL - Invalid "max-link-speed" property value, or failure to access 597 + * the property of the device tree node. 600 598 * 601 599 * Returns the associated max link speed from DT, or a negative value if the 602 600 * required property is not found or is invalid.
+3 -3
drivers/pci/pcie/aer.c
··· 129 129 }; 130 130 131 131 /** 132 - * enable_ercr_checking - enable PCIe ECRC checking for a device 132 + * enable_ecrc_checking - enable PCIe ECRC checking for a device 133 133 * @dev: the PCI device 134 134 * 135 135 * Returns 0 on success, or negative on failure. ··· 153 153 } 154 154 155 155 /** 156 - * disable_ercr_checking - disables PCIe ECRC checking for a device 156 + * disable_ecrc_checking - disables PCIe ECRC checking for a device 157 157 * @dev: the PCI device 158 158 * 159 159 * Returns 0 on success, or negative on failure. ··· 1442 1442 }; 1443 1443 1444 1444 /** 1445 - * aer_service_init - register AER root service driver 1445 + * pcie_aer_init - register AER root service driver 1446 1446 * 1447 1447 * Invoked when AER root service driver is loaded. 1448 1448 */
+1 -1
drivers/pci/pcie/pme.c
··· 463 463 }; 464 464 465 465 /** 466 - * pcie_pme_service_init - Register the PCIe PME service driver. 466 + * pcie_pme_init - Register the PCIe PME service driver. 467 467 */ 468 468 int __init pcie_pme_init(void) 469 469 {