diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-22 13:53:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-22 13:53:47 -0500 |
commit | e3414786ffb40a1fd524624369d350ed70a90a08 (patch) | |
tree | b4247a5e7c2335e9fa8b2ab6ac57ede3d2576f52 /drivers/pci/pcie | |
parent | b0e3636f656c98bdeded5aaa78601e3256b18d6d (diff) | |
parent | e7cc5cf74544d97d7b69e2701595037474db1f96 (diff) |
Merge tag 'pci-v3.13-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI updates from Bjorn Helgaas:
"Miscellaneous
- Remove duplicate disable from pcie_portdrv_remove() (Yinghai Lu)
- Fix whitespace, capitalization, and spelling errors (Bjorn Helgaas)"
* tag 'pci-v3.13-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
PCI: Remove duplicate pci_disable_device() from pcie_portdrv_remove()
PCI: Fix whitespace, capitalization, and spelling errors
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv_core.c | 2 | ||||
-rw-r--r-- | drivers/pci/pcie/aspm.c | 2 | ||||
-rw-r--r-- | drivers/pci/pcie/pme.c | 4 | ||||
-rw-r--r-- | drivers/pci/pcie/portdrv.h | 2 | ||||
-rw-r--r-- | drivers/pci/pcie/portdrv_bus.c | 4 | ||||
-rw-r--r-- | drivers/pci/pcie/portdrv_core.c | 2 | ||||
-rw-r--r-- | drivers/pci/pcie/portdrv_pci.c | 7 |
7 files changed, 11 insertions, 12 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index 6b3a958e1be6..b2c8881da764 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c | |||
@@ -525,7 +525,7 @@ static void handle_error_source(struct pcie_device *aerdev, | |||
525 | 525 | ||
526 | if (info->severity == AER_CORRECTABLE) { | 526 | if (info->severity == AER_CORRECTABLE) { |
527 | /* | 527 | /* |
528 | * Correctable error does not need software intevention. | 528 | * Correctable error does not need software intervention. |
529 | * No need to go through error recovery process. | 529 | * No need to go through error recovery process. |
530 | */ | 530 | */ |
531 | pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); | 531 | pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_ERR); |
diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c index 403a44374ed5..f1272dc54de1 100644 --- a/drivers/pci/pcie/aspm.c +++ b/drivers/pci/pcie/aspm.c | |||
@@ -548,7 +548,7 @@ static struct pcie_link_state *alloc_pcie_link_state(struct pci_dev *pdev) | |||
548 | 548 | ||
549 | /* | 549 | /* |
550 | * pcie_aspm_init_link_state: Initiate PCI express link state. | 550 | * pcie_aspm_init_link_state: Initiate PCI express link state. |
551 | * It is called after the pcie and its children devices are scaned. | 551 | * It is called after the pcie and its children devices are scanned. |
552 | * @pdev: the root port or switch downstream port | 552 | * @pdev: the root port or switch downstream port |
553 | */ | 553 | */ |
554 | void pcie_aspm_init_link_state(struct pci_dev *pdev) | 554 | void pcie_aspm_init_link_state(struct pci_dev *pdev) |
diff --git a/drivers/pci/pcie/pme.c b/drivers/pci/pcie/pme.c index e56e594ce112..bbc3bdd2b189 100644 --- a/drivers/pci/pcie/pme.c +++ b/drivers/pci/pcie/pme.c | |||
@@ -419,8 +419,8 @@ static void pcie_pme_remove(struct pcie_device *srv) | |||
419 | 419 | ||
420 | static struct pcie_port_service_driver pcie_pme_driver = { | 420 | static struct pcie_port_service_driver pcie_pme_driver = { |
421 | .name = "pcie_pme", | 421 | .name = "pcie_pme", |
422 | .port_type = PCI_EXP_TYPE_ROOT_PORT, | 422 | .port_type = PCI_EXP_TYPE_ROOT_PORT, |
423 | .service = PCIE_PORT_SERVICE_PME, | 423 | .service = PCIE_PORT_SERVICE_PME, |
424 | 424 | ||
425 | .probe = pcie_pme_probe, | 425 | .probe = pcie_pme_probe, |
426 | .suspend = pcie_pme_suspend, | 426 | .suspend = pcie_pme_suspend, |
diff --git a/drivers/pci/pcie/portdrv.h b/drivers/pci/pcie/portdrv.h index d2eb80aab569..d525548404d6 100644 --- a/drivers/pci/pcie/portdrv.h +++ b/drivers/pci/pcie/portdrv.h | |||
@@ -14,7 +14,7 @@ | |||
14 | #define PCIE_PORT_DEVICE_MAXSERVICES 4 | 14 | #define PCIE_PORT_DEVICE_MAXSERVICES 4 |
15 | /* | 15 | /* |
16 | * According to the PCI Express Base Specification 2.0, the indices of | 16 | * According to the PCI Express Base Specification 2.0, the indices of |
17 | * the MSI-X table entires used by port services must not exceed 31 | 17 | * the MSI-X table entries used by port services must not exceed 31 |
18 | */ | 18 | */ |
19 | #define PCIE_PORT_MAX_MSIX_ENTRIES 32 | 19 | #define PCIE_PORT_MAX_MSIX_ENTRIES 32 |
20 | 20 | ||
diff --git a/drivers/pci/pcie/portdrv_bus.c b/drivers/pci/pcie/portdrv_bus.c index 67be55a7f260..87e79a6ffb5a 100644 --- a/drivers/pci/pcie/portdrv_bus.c +++ b/drivers/pci/pcie/portdrv_bus.c | |||
@@ -18,8 +18,8 @@ | |||
18 | static int pcie_port_bus_match(struct device *dev, struct device_driver *drv); | 18 | static int pcie_port_bus_match(struct device *dev, struct device_driver *drv); |
19 | 19 | ||
20 | struct bus_type pcie_port_bus_type = { | 20 | struct bus_type pcie_port_bus_type = { |
21 | .name = "pci_express", | 21 | .name = "pci_express", |
22 | .match = pcie_port_bus_match, | 22 | .match = pcie_port_bus_match, |
23 | }; | 23 | }; |
24 | EXPORT_SYMBOL_GPL(pcie_port_bus_type); | 24 | EXPORT_SYMBOL_GPL(pcie_port_bus_type); |
25 | 25 | ||
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c index 08d131f7815b..0b6e76604068 100644 --- a/drivers/pci/pcie/portdrv_core.c +++ b/drivers/pci/pcie/portdrv_core.c | |||
@@ -46,7 +46,7 @@ static void release_pcie_device(struct device *dev) | |||
46 | * pcie_port_msix_add_entry - add entry to given array of MSI-X entries | 46 | * pcie_port_msix_add_entry - add entry to given array of MSI-X entries |
47 | * @entries: Array of MSI-X entries | 47 | * @entries: Array of MSI-X entries |
48 | * @new_entry: Index of the entry to add to the array | 48 | * @new_entry: Index of the entry to add to the array |
49 | * @nr_entries: Number of entries aleady in the array | 49 | * @nr_entries: Number of entries already in the array |
50 | * | 50 | * |
51 | * Return value: Position of the added entry in the array | 51 | * Return value: Position of the added entry in the array |
52 | */ | 52 | */ |
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 696caed5fdf5..0d8fdc48e642 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c | |||
@@ -223,7 +223,6 @@ static int pcie_portdrv_probe(struct pci_dev *dev, | |||
223 | static void pcie_portdrv_remove(struct pci_dev *dev) | 223 | static void pcie_portdrv_remove(struct pci_dev *dev) |
224 | { | 224 | { |
225 | pcie_port_device_remove(dev); | 225 | pcie_port_device_remove(dev); |
226 | pci_disable_device(dev); | ||
227 | } | 226 | } |
228 | 227 | ||
229 | static int error_detected_iter(struct device *device, void *data) | 228 | static int error_detected_iter(struct device *device, void *data) |
@@ -390,9 +389,9 @@ static struct pci_driver pcie_portdriver = { | |||
390 | .probe = pcie_portdrv_probe, | 389 | .probe = pcie_portdrv_probe, |
391 | .remove = pcie_portdrv_remove, | 390 | .remove = pcie_portdrv_remove, |
392 | 391 | ||
393 | .err_handler = &pcie_portdrv_err_handler, | 392 | .err_handler = &pcie_portdrv_err_handler, |
394 | 393 | ||
395 | .driver.pm = PCIE_PORTDRV_PM_OPS, | 394 | .driver.pm = PCIE_PORTDRV_PM_OPS, |
396 | }; | 395 | }; |
397 | 396 | ||
398 | static int __init dmi_pcie_pme_disable_msi(const struct dmi_system_id *d) | 397 | static int __init dmi_pcie_pme_disable_msi(const struct dmi_system_id *d) |
@@ -412,7 +411,7 @@ static struct dmi_system_id __initdata pcie_portdrv_dmi_table[] = { | |||
412 | .ident = "MSI Wind U-100", | 411 | .ident = "MSI Wind U-100", |
413 | .matches = { | 412 | .matches = { |
414 | DMI_MATCH(DMI_SYS_VENDOR, | 413 | DMI_MATCH(DMI_SYS_VENDOR, |
415 | "MICRO-STAR INTERNATIONAL CO., LTD"), | 414 | "MICRO-STAR INTERNATIONAL CO., LTD"), |
416 | DMI_MATCH(DMI_PRODUCT_NAME, "U-100"), | 415 | DMI_MATCH(DMI_PRODUCT_NAME, "U-100"), |
417 | }, | 416 | }, |
418 | }, | 417 | }, |