mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 17:06:42 +07:00
PCI: Remove useless comments and tidy others
Remove useless comments and tidy others for better readability. Whitespace changes only. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
eceb86028d
commit
9d8b738bb9
@ -2300,8 +2300,7 @@ void pcie_report_downtraining(struct pci_dev *dev)
|
|||||||
|
|
||||||
static void pci_init_capabilities(struct pci_dev *dev)
|
static void pci_init_capabilities(struct pci_dev *dev)
|
||||||
{
|
{
|
||||||
/* Enhanced Allocation */
|
pci_ea_init(dev); /* Enhanced Allocation */
|
||||||
pci_ea_init(dev);
|
|
||||||
|
|
||||||
/* Setup MSI caps & disable MSI/MSI-X interrupts */
|
/* Setup MSI caps & disable MSI/MSI-X interrupts */
|
||||||
pci_msi_setup_pci_dev(dev);
|
pci_msi_setup_pci_dev(dev);
|
||||||
@ -2309,29 +2308,14 @@ static void pci_init_capabilities(struct pci_dev *dev)
|
|||||||
/* Buffers for saving PCIe and PCI-X capabilities */
|
/* Buffers for saving PCIe and PCI-X capabilities */
|
||||||
pci_allocate_cap_save_buffers(dev);
|
pci_allocate_cap_save_buffers(dev);
|
||||||
|
|
||||||
/* Power Management */
|
pci_pm_init(dev); /* Power Management */
|
||||||
pci_pm_init(dev);
|
pci_vpd_init(dev); /* Vital Product Data */
|
||||||
|
pci_configure_ari(dev); /* Alternative Routing-ID Forwarding */
|
||||||
/* Vital Product Data */
|
pci_iov_init(dev); /* Single Root I/O Virtualization */
|
||||||
pci_vpd_init(dev);
|
pci_ats_init(dev); /* Address Translation Services */
|
||||||
|
pci_enable_acs(dev); /* Enable ACS P2P upstream forwarding */
|
||||||
/* Alternative Routing-ID Forwarding */
|
pci_ptm_init(dev); /* Precision Time Measurement */
|
||||||
pci_configure_ari(dev);
|
pci_aer_init(dev); /* Advanced Error Reporting */
|
||||||
|
|
||||||
/* Single Root I/O Virtualization */
|
|
||||||
pci_iov_init(dev);
|
|
||||||
|
|
||||||
/* Address Translation Services */
|
|
||||||
pci_ats_init(dev);
|
|
||||||
|
|
||||||
/* Enable ACS P2P upstream forwarding */
|
|
||||||
pci_enable_acs(dev);
|
|
||||||
|
|
||||||
/* Precision Time Measurement */
|
|
||||||
pci_ptm_init(dev);
|
|
||||||
|
|
||||||
/* Advanced Error Reporting */
|
|
||||||
pci_aer_init(dev);
|
|
||||||
|
|
||||||
pcie_report_downtraining(dev);
|
pcie_report_downtraining(dev);
|
||||||
|
|
||||||
@ -2403,13 +2387,10 @@ void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
|
|||||||
/* Fix up broken headers */
|
/* Fix up broken headers */
|
||||||
pci_fixup_device(pci_fixup_header, dev);
|
pci_fixup_device(pci_fixup_header, dev);
|
||||||
|
|
||||||
/* Moved out from quirk header fixup code */
|
|
||||||
pci_reassigndev_resource_alignment(dev);
|
pci_reassigndev_resource_alignment(dev);
|
||||||
|
|
||||||
/* Clear the state_saved flag */
|
|
||||||
dev->state_saved = false;
|
dev->state_saved = false;
|
||||||
|
|
||||||
/* Initialize various capabilities */
|
|
||||||
pci_init_capabilities(dev);
|
pci_init_capabilities(dev);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user