Skip to content

Commit 7e124c4

Browse files
committed
Merge branch 'pci/trivial'
- Fix typos and comments (Bjorn Helgaas) - Fix Kconfig whitespace errors (Krzysztof Kozlowski) * pci/trivial: PCI: Fix indentation PCI: Fix typos PCI: Remove useless comments and tidy others PCI: Remove unnecessary includes # Conflicts: # drivers/pci/probe.c
2 parents 48617f0 + 36533f3 commit 7e124c4

File tree

8 files changed

+30
-55
lines changed

8 files changed

+30
-55
lines changed

drivers/pci/Kconfig

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -106,14 +106,14 @@ config PCI_PF_STUB
106106
When in doubt, say N.
107107

108108
config XEN_PCIDEV_FRONTEND
109-
tristate "Xen PCI Frontend"
110-
depends on X86 && XEN
111-
select PCI_XEN
109+
tristate "Xen PCI Frontend"
110+
depends on X86 && XEN
111+
select PCI_XEN
112112
select XEN_XENBUS_FRONTEND
113-
default y
114-
help
115-
The PCI device frontend driver allows the kernel to import arbitrary
116-
PCI devices from a PCI backend to support PCI driver domains.
113+
default y
114+
help
115+
The PCI device frontend driver allows the kernel to import arbitrary
116+
PCI devices from a PCI backend to support PCI driver domains.
117117

118118
config PCI_ATS
119119
bool
@@ -180,12 +180,12 @@ config PCI_LABEL
180180
select NLS
181181

182182
config PCI_HYPERV
183-
tristate "Hyper-V PCI Frontend"
184-
depends on X86_64 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && SYSFS
183+
tristate "Hyper-V PCI Frontend"
184+
depends on X86_64 && HYPERV && PCI_MSI && PCI_MSI_IRQ_DOMAIN && SYSFS
185185
select PCI_HYPERV_INTERFACE
186-
help
187-
The PCI device frontend driver allows the kernel to import arbitrary
188-
PCI devices from a PCI backend to support PCI driver domains.
186+
help
187+
The PCI device frontend driver allows the kernel to import arbitrary
188+
PCI devices from a PCI backend to support PCI driver domains.
189189

190190
source "drivers/pci/hotplug/Kconfig"
191191
source "drivers/pci/controller/Kconfig"

drivers/pci/controller/dwc/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ config PCIE_DW
77
bool
88

99
config PCIE_DW_HOST
10-
bool
10+
bool
1111
depends on PCI_MSI_IRQ_DOMAIN
12-
select PCIE_DW
12+
select PCIE_DW
1313

1414
config PCIE_DW_EP
1515
bool
@@ -224,7 +224,7 @@ config PCIE_HISI_STB
224224
depends on PCI_MSI_IRQ_DOMAIN
225225
select PCIE_DW_HOST
226226
help
227-
Say Y here if you want PCIe controller support on HiSilicon STB SoCs
227+
Say Y here if you want PCIe controller support on HiSilicon STB SoCs
228228

229229
config PCI_MESON
230230
bool "MESON PCIe controller"

drivers/pci/controller/vmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ static int vmd_suspend(struct device *dev)
837837
int i;
838838

839839
for (i = 0; i < vmd->msix_count; i++)
840-
devm_free_irq(dev, pci_irq_vector(pdev, i), &vmd->irqs[i]);
840+
devm_free_irq(dev, pci_irq_vector(pdev, i), &vmd->irqs[i]);
841841

842842
pci_save_state(pdev);
843843
return 0;

drivers/pci/hotplug/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ config HOTPLUG_PCI_CPCI_ZT5550
8383
depends on HOTPLUG_PCI_CPCI && X86
8484
help
8585
Say Y here if you have an Performance Technologies (formerly Intel,
86-
formerly just Ziatech) Ziatech ZT5550 CompactPCI system card.
86+
formerly just Ziatech) Ziatech ZT5550 CompactPCI system card.
8787

8888
To compile this driver as a module, choose M here: the
8989
module will be called cpcihp_zt5550.

drivers/pci/hotplug/rpaphp_core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ static int get_children_props(struct device_node *dn, const int **drc_indexes,
185185

186186

187187
/* Verify the existence of 'drc_name' and/or 'drc_type' within the
188-
* current node. First obtain it's my-drc-index property. Next,
189-
* obtain the DRC info from it's parent. Use the my-drc-index for
188+
* current node. First obtain its my-drc-index property. Next,
189+
* obtain the DRC info from its parent. Use the my-drc-index for
190190
* correlation, and obtain/validate the requested properties.
191191
*/
192192

drivers/pci/iov.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
#include <linux/pci.h>
1111
#include <linux/slab.h>
12-
#include <linux/mutex.h>
1312
#include <linux/export.h>
1413
#include <linux/string.h>
1514
#include <linux/delay.h>

drivers/pci/probe.c

Lines changed: 11 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,44 +2311,24 @@ void pcie_report_downtraining(struct pci_dev *dev)
23112311

23122312
static void pci_init_capabilities(struct pci_dev *dev)
23132313
{
2314-
/* Enhanced Allocation */
2315-
pci_ea_init(dev);
2314+
pci_ea_init(dev); /* Enhanced Allocation */
23162315

23172316
/* Setup MSI caps & disable MSI/MSI-X interrupts */
23182317
pci_msi_setup_pci_dev(dev);
23192318

23202319
/* Buffers for saving PCIe and PCI-X capabilities */
23212320
pci_allocate_cap_save_buffers(dev);
23222321

2323-
/* Power Management */
2324-
pci_pm_init(dev);
2325-
2326-
/* Vital Product Data */
2327-
pci_vpd_init(dev);
2328-
2329-
/* Alternative Routing-ID Forwarding */
2330-
pci_configure_ari(dev);
2331-
2332-
/* Single Root I/O Virtualization */
2333-
pci_iov_init(dev);
2334-
2335-
/* Address Translation Services */
2336-
pci_ats_init(dev);
2337-
2338-
/* Page Request Interface */
2339-
pci_pri_init(dev);
2340-
2341-
/* Process Address Space ID */
2342-
pci_pasid_init(dev);
2343-
2344-
/* Enable ACS P2P upstream forwarding */
2345-
pci_enable_acs(dev);
2346-
2347-
/* Precision Time Measurement */
2348-
pci_ptm_init(dev);
2349-
2350-
/* Advanced Error Reporting */
2351-
pci_aer_init(dev);
2322+
pci_pm_init(dev); /* Power Management */
2323+
pci_vpd_init(dev); /* Vital Product Data */
2324+
pci_configure_ari(dev); /* Alternative Routing-ID Forwarding */
2325+
pci_iov_init(dev); /* Single Root I/O Virtualization */
2326+
pci_ats_init(dev); /* Address Translation Services */
2327+
pci_pri_init(dev); /* Page Request Interface */
2328+
pci_pasid_init(dev); /* Process Address Space ID */
2329+
pci_enable_acs(dev); /* Enable ACS P2P upstream forwarding */
2330+
pci_ptm_init(dev); /* Precision Time Measurement */
2331+
pci_aer_init(dev); /* Advanced Error Reporting */
23522332

23532333
pcie_report_downtraining(dev);
23542334

@@ -2420,13 +2400,10 @@ void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
24202400
/* Fix up broken headers */
24212401
pci_fixup_device(pci_fixup_header, dev);
24222402

2423-
/* Moved out from quirk header fixup code */
24242403
pci_reassigndev_resource_alignment(dev);
24252404

2426-
/* Clear the state_saved flag */
24272405
dev->state_saved = false;
24282406

2429-
/* Initialize various capabilities */
24302407
pci_init_capabilities(dev);
24312408

24322409
/*

drivers/pci/quirks.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4033,7 +4033,6 @@ static void quirk_fixed_dma_alias(struct pci_dev *dev)
40334033
if (id)
40344034
pci_add_dma_alias(dev, id->driver_data);
40354035
}
4036-
40374036
DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_ADAPTEC2, 0x0285, quirk_fixed_dma_alias);
40384037

40394038
/*

0 commit comments

Comments
 (0)