Skip to content

Commit 86b4ad7

Browse files
committed
PCI: Fix typos in docs and comments
Fix typos in docs and comments. Link: https://lore.kernel.org/r/20230824193712.542167-11-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Randy Dunlap <rdunlap@infradead.org> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent 2b4af4b commit 86b4ad7

File tree

9 files changed

+33
-33
lines changed

9 files changed

+33
-33
lines changed

Documentation/PCI/pci-error-recovery.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ chipsets are able to deal with these errors; these include PCI-E chipsets,
1717
and the PCI-host bridges found on IBM Power4, Power5 and Power6-based
1818
pSeries boxes. A typical action taken is to disconnect the affected device,
1919
halting all I/O to it. The goal of a disconnection is to avoid system
20-
corruption; for example, to halt system memory corruption due to DMA's
20+
corruption; for example, to halt system memory corruption due to DMAs
2121
to "wild" addresses. Typically, a reconnection mechanism is also
2222
offered, so that the affected PCI device(s) are reset and put back
2323
into working condition. The reset phase requires coordination
@@ -178,9 +178,9 @@ is STEP 6 (Permanent Failure).
178178
complex and not worth implementing.
179179

180180
The current powerpc implementation doesn't much care if the device
181-
attempts I/O at this point, or not. I/O's will fail, returning
181+
attempts I/O at this point, or not. I/Os will fail, returning
182182
a value of 0xff on read, and writes will be dropped. If more than
183-
EEH_MAX_FAILS I/O's are attempted to a frozen adapter, EEH
183+
EEH_MAX_FAILS I/Os are attempted to a frozen adapter, EEH
184184
assumes that the device driver has gone into an infinite loop
185185
and prints an error to syslog. A reboot is then required to
186186
get the device working again.
@@ -204,7 +204,7 @@ instead will have gone directly to STEP 3 (Link Reset) or STEP 4 (Slot Reset)
204204
.. note::
205205

206206
The following is proposed; no platform implements this yet:
207-
Proposal: All I/O's should be done _synchronously_ from within
207+
Proposal: All I/Os should be done _synchronously_ from within
208208
this callback, errors triggered by them will be returned via
209209
the normal pci_check_whatever() API, no new error_detected()
210210
callback will be issued due to an error happening here. However,
@@ -258,7 +258,7 @@ Powerpc platforms implement two levels of slot reset:
258258
soft reset(default) and fundamental(optional) reset.
259259

260260
Powerpc soft reset consists of asserting the adapter #RST line and then
261-
restoring the PCI BAR's and PCI configuration header to a state
261+
restoring the PCI BARs and PCI configuration header to a state
262262
that is equivalent to what it would be after a fresh system
263263
power-on followed by power-on BIOS/system firmware initialization.
264264
Soft reset is also known as hot-reset.
@@ -362,7 +362,7 @@ permanent failure in some way. If the device is hotplug-capable,
362362
the operator will probably want to remove and replace the device.
363363
Note, however, not all failures are truly "permanent". Some are
364364
caused by over-heating, some by a poorly seated card. Many
365-
PCI error events are caused by software bugs, e.g. DMA's to
365+
PCI error events are caused by software bugs, e.g. DMAs to
366366
wild addresses or bogus split transactions due to programming
367367
errors. See the discussion in Documentation/powerpc/eeh-pci-error-recovery.rst
368368
for additional detail on real-life experience of the causes of

drivers/pci/controller/cadence/pcie-cadence.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#define CDNS_PCIE_LM_ID_SUBSYS(sub) \
3333
(((sub) << CDNS_PCIE_LM_ID_SUBSYS_SHIFT) & CDNS_PCIE_LM_ID_SUBSYS_MASK)
3434

35-
/* Root Port Requestor ID Register */
35+
/* Root Port Requester ID Register */
3636
#define CDNS_PCIE_LM_RP_RID (CDNS_PCIE_LM_BASE + 0x0228)
3737
#define CDNS_PCIE_LM_RP_RID_MASK GENMASK(15, 0)
3838
#define CDNS_PCIE_LM_RP_RID_SHIFT 0

drivers/pci/endpoint/functions/pci-epf-vntb.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -986,22 +986,22 @@ static struct config_group *epf_ntb_add_cfs(struct pci_epf *epf,
986986
/*==== virtual PCI bus driver, which only load virtual NTB PCI driver ====*/
987987

988988
static u32 pci_space[] = {
989-
0xffffffff, /*DeviceID, Vendor ID*/
990-
0, /*Status, Command*/
991-
0xffffffff, /*Class code, subclass, prog if, revision id*/
992-
0x40, /*bist, header type, latency Timer, cache line size*/
993-
0, /*BAR 0*/
994-
0, /*BAR 1*/
995-
0, /*BAR 2*/
996-
0, /*BAR 3*/
997-
0, /*BAR 4*/
998-
0, /*BAR 5*/
999-
0, /*Cardbus cis point*/
1000-
0, /*Subsystem ID Subystem vendor id*/
1001-
0, /*ROM Base Address*/
1002-
0, /*Reserved, Cap. Point*/
1003-
0, /*Reserved,*/
1004-
0, /*Max Lat, Min Gnt, interrupt pin, interrupt line*/
989+
0xffffffff, /* Device ID, Vendor ID */
990+
0, /* Status, Command */
991+
0xffffffff, /* Base Class, Subclass, Prog Intf, Revision ID */
992+
0x40, /* BIST, Header Type, Latency Timer, Cache Line Size */
993+
0, /* BAR 0 */
994+
0, /* BAR 1 */
995+
0, /* BAR 2 */
996+
0, /* BAR 3 */
997+
0, /* BAR 4 */
998+
0, /* BAR 5 */
999+
0, /* Cardbus CIS Pointer */
1000+
0, /* Subsystem ID, Subsystem Vendor ID */
1001+
0, /* ROM Base Address */
1002+
0, /* Reserved, Capabilities Pointer */
1003+
0, /* Reserved */
1004+
0, /* Max_Lat, Min_Gnt, Interrupt Pin, Interrupt Line */
10051005
};
10061006

10071007
static int pci_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *val)

drivers/pci/msi/irqdomain.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,15 +336,15 @@ bool pci_msi_domain_supports(struct pci_dev *pdev, unsigned int feature_mask,
336336
if (!irq_domain_is_msi_parent(domain)) {
337337
/*
338338
* For "global" PCI/MSI interrupt domains the associated
339-
* msi_domain_info::flags is the authoritive source of
339+
* msi_domain_info::flags is the authoritative source of
340340
* information.
341341
*/
342342
info = domain->host_data;
343343
supported = info->flags;
344344
} else {
345345
/*
346346
* For MSI parent domains the supported feature set
347-
* is avaliable in the parent ops. This makes checks
347+
* is available in the parent ops. This makes checks
348348
* possible before actually instantiating the
349349
* per device domain because the parent is never
350350
* expanding the PCI/MSI functionality.

drivers/pci/p2pdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ static const struct pci_p2pdma_whitelist_entry {
435435
/* Intel Xeon E7 v3/Xeon E5 v3/Core i7 */
436436
{PCI_VENDOR_ID_INTEL, 0x2f00, REQ_SAME_HOST_BRIDGE},
437437
{PCI_VENDOR_ID_INTEL, 0x2f01, REQ_SAME_HOST_BRIDGE},
438-
/* Intel SkyLake-E */
438+
/* Intel Skylake-E */
439439
{PCI_VENDOR_ID_INTEL, 0x2030, 0},
440440
{PCI_VENDOR_ID_INTEL, 0x2031, 0},
441441
{PCI_VENDOR_ID_INTEL, 0x2032, 0},

drivers/pci/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ int pci_power_up(struct pci_dev *dev)
12901290
*
12911291
* Call pci_power_up() to put @dev into D0, read from its PCI_PM_CTRL register
12921292
* to confirm the state change, restore its BARs if they might be lost and
1293-
* reconfigure ASPM in acordance with the new power state.
1293+
* reconfigure ASPM in accordance with the new power state.
12941294
*
12951295
* If pci_restore_state() is going to be called right after a power state change
12961296
* to D0, it is more efficient to use pci_power_up() directly instead of this

drivers/pci/probe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2136,7 +2136,7 @@ static void pci_configure_relaxed_ordering(struct pci_dev *dev)
21362136
{
21372137
struct pci_dev *root;
21382138

2139-
/* PCI_EXP_DEVICE_RELAX_EN is RsvdP in VFs */
2139+
/* PCI_EXP_DEVCTL_RELAX_EN is RsvdP in VFs */
21402140
if (dev->is_virtfn)
21412141
return;
21422142

drivers/pci/quirks.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NEC, PCI_DEVICE_ID_NEC_CBUS_3, quirk_isa_d
362362
#endif
363363

364364
/*
365-
* Intel NM10 "TigerPoint" LPC PM1a_STS.BM_STS must be clear
365+
* Intel NM10 "Tiger Point" LPC PM1a_STS.BM_STS must be clear
366366
* for some HT machines to use C4 w/o hanging.
367367
*/
368368
static void quirk_tigerpoint_bm_sts(struct pci_dev *dev)
@@ -375,7 +375,7 @@ static void quirk_tigerpoint_bm_sts(struct pci_dev *dev)
375375
pm1a = inw(pmbase);
376376

377377
if (pm1a & 0x10) {
378-
pci_info(dev, FW_BUG "TigerPoint LPC.BM_STS cleared\n");
378+
pci_info(dev, FW_BUG "Tiger Point LPC.BM_STS cleared\n");
379379
outw(0x10, pmbase);
380380
}
381381
}
@@ -3073,7 +3073,7 @@ static void __nv_msi_ht_cap_quirk(struct pci_dev *dev, int all)
30733073

30743074
/*
30753075
* HT MSI mapping should be disabled on devices that are below
3076-
* a non-Hypertransport host bridge. Locate the host bridge...
3076+
* a non-HyperTransport host bridge. Locate the host bridge.
30773077
*/
30783078
host_bridge = pci_get_domain_bus_and_slot(pci_domain_nr(dev->bus), 0,
30793079
PCI_DEVFN(0, 0));
@@ -5729,7 +5729,7 @@ int pci_idt_bus_quirk(struct pci_bus *bus, int devfn, u32 *l, int timeout)
57295729
/*
57305730
* Microsemi Switchtec NTB uses devfn proxy IDs to move TLPs between
57315731
* NT endpoints via the internal switch fabric. These IDs replace the
5732-
* originating requestor ID TLPs which access host memory on peer NTB
5732+
* originating Requester ID TLPs which access host memory on peer NTB
57335733
* ports. Therefore, all proxy IDs must be aliased to the NTB device
57345734
* to permit access when the IOMMU is turned on.
57355735
*/

drivers/pci/setup-bus.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1799,7 +1799,7 @@ static void remove_dev_resources(struct pci_dev *dev, struct resource *io,
17991799
* Make sure prefetchable memory is reduced from
18001800
* the correct resource. Specifically we put 32-bit
18011801
* prefetchable memory in non-prefetchable window
1802-
* if there is an 64-bit pretchable window.
1802+
* if there is an 64-bit prefetchable window.
18031803
*
18041804
* See comments in __pci_bus_size_bridges() for
18051805
* more information.

0 commit comments

Comments
 (0)