diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2018-04-04 14:28:48 -0400 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-04-04 14:28:48 -0400 |
commit | 74716ff7abb483111eb44104b05799226e69b4b3 (patch) | |
tree | a7ab49ff409f9a5e7089d0af6d967ea5a2716f9a | |
parent | 14d8d776aeda8e367a9354b6cb6a0696671630c9 (diff) | |
parent | 6c994c504fa21843c667edece593dbfa4634b046 (diff) |
Merge branch '6c994c504fa2'
- exclude af3c73473d10 ("PCI: Improve host drivers compile test
coverage") from lorenzo/pci/host/misc to avoid build failure
* commit '6c994c504fa2':
PCI: v3-semi: Remove unnecessary semicolon
PCI: rcar: Remove unnecessary semicolon
PCI: faraday: Make struct faraday_pci_variant static
PCI: kirin: Make struct kirin_pcie_driver static
PCI: kirin: Fix missing dependency on PCI_MSI_IRQ_DOMAIN
PCI: iproc: Remove dependency on ARM specific struct pci_sys_data
PCI: kirin: Remove unnecessary asm/compiler.h include
PCI: tegra: Add PCI_MSI_IRQ_DOMAIN kconfig dependency
PCI: vmd: Fix malformed Kconfig default
-rw-r--r-- | drivers/pci/dwc/Kconfig | 1 | ||||
-rw-r--r-- | drivers/pci/dwc/pcie-kirin.c | 3 | ||||
-rw-r--r-- | drivers/pci/host/Kconfig | 2 | ||||
-rw-r--r-- | drivers/pci/host/pci-ftpci100.c | 4 | ||||
-rw-r--r-- | drivers/pci/host/pci-v3-semi.c | 2 | ||||
-rw-r--r-- | drivers/pci/host/pcie-iproc-bcma.c | 3 | ||||
-rw-r--r-- | drivers/pci/host/pcie-iproc.c | 19 | ||||
-rw-r--r-- | drivers/pci/host/pcie-iproc.h | 4 | ||||
-rw-r--r-- | drivers/pci/host/pcie-rcar.c | 2 |
9 files changed, 10 insertions, 30 deletions
diff --git a/drivers/pci/dwc/Kconfig b/drivers/pci/dwc/Kconfig index 0f666b1ce289..2f3f5c50aa48 100644 --- a/drivers/pci/dwc/Kconfig +++ b/drivers/pci/dwc/Kconfig | |||
@@ -176,6 +176,7 @@ config PCIE_ARTPEC6_EP | |||
176 | config PCIE_KIRIN | 176 | config PCIE_KIRIN |
177 | depends on OF && ARM64 | 177 | depends on OF && ARM64 |
178 | bool "HiSilicon Kirin series SoCs PCIe controllers" | 178 | bool "HiSilicon Kirin series SoCs PCIe controllers" |
179 | depends on PCI_MSI_IRQ_DOMAIN | ||
179 | depends on PCI | 180 | depends on PCI |
180 | select PCIEPORTBUS | 181 | select PCIEPORTBUS |
181 | select PCIE_DW_HOST | 182 | select PCIE_DW_HOST |
diff --git a/drivers/pci/dwc/pcie-kirin.c b/drivers/pci/dwc/pcie-kirin.c index 13d839bd6160..a6b88c7f6e3e 100644 --- a/drivers/pci/dwc/pcie-kirin.c +++ b/drivers/pci/dwc/pcie-kirin.c | |||
@@ -8,7 +8,6 @@ | |||
8 | * Author: Xiaowei Song <songxiaowei@huawei.com> | 8 | * Author: Xiaowei Song <songxiaowei@huawei.com> |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <asm/compiler.h> | ||
12 | #include <linux/compiler.h> | 11 | #include <linux/compiler.h> |
13 | #include <linux/clk.h> | 12 | #include <linux/clk.h> |
14 | #include <linux/delay.h> | 13 | #include <linux/delay.h> |
@@ -505,7 +504,7 @@ static const struct of_device_id kirin_pcie_match[] = { | |||
505 | {}, | 504 | {}, |
506 | }; | 505 | }; |
507 | 506 | ||
508 | struct platform_driver kirin_pcie_driver = { | 507 | static struct platform_driver kirin_pcie_driver = { |
509 | .probe = kirin_pcie_probe, | 508 | .probe = kirin_pcie_probe, |
510 | .driver = { | 509 | .driver = { |
511 | .name = "kirin-pcie", | 510 | .name = "kirin-pcie", |
diff --git a/drivers/pci/host/Kconfig b/drivers/pci/host/Kconfig index a4ed7484d127..0d0177ce436c 100644 --- a/drivers/pci/host/Kconfig +++ b/drivers/pci/host/Kconfig | |||
@@ -38,6 +38,7 @@ config PCI_FTPCI100 | |||
38 | config PCI_TEGRA | 38 | config PCI_TEGRA |
39 | bool "NVIDIA Tegra PCIe controller" | 39 | bool "NVIDIA Tegra PCIe controller" |
40 | depends on ARCH_TEGRA | 40 | depends on ARCH_TEGRA |
41 | depends on PCI_MSI_IRQ_DOMAIN | ||
41 | help | 42 | help |
42 | Say Y here if you want support for the PCIe host controller found | 43 | Say Y here if you want support for the PCIe host controller found |
43 | on NVIDIA Tegra SoCs. | 44 | on NVIDIA Tegra SoCs. |
@@ -215,7 +216,6 @@ config PCIE_TANGO_SMP8759 | |||
215 | config VMD | 216 | config VMD |
216 | depends on PCI_MSI && X86_64 && SRCU | 217 | depends on PCI_MSI && X86_64 && SRCU |
217 | tristate "Intel Volume Management Device Driver" | 218 | tristate "Intel Volume Management Device Driver" |
218 | default N | ||
219 | ---help--- | 219 | ---help--- |
220 | Adds support for the Intel Volume Management Device (VMD). VMD is a | 220 | Adds support for the Intel Volume Management Device (VMD). VMD is a |
221 | secondary PCI host bridge that allows PCI Express root ports, | 221 | secondary PCI host bridge that allows PCI Express root ports, |
diff --git a/drivers/pci/host/pci-ftpci100.c b/drivers/pci/host/pci-ftpci100.c index b9617d1c1d48..5008fd87956a 100644 --- a/drivers/pci/host/pci-ftpci100.c +++ b/drivers/pci/host/pci-ftpci100.c | |||
@@ -586,11 +586,11 @@ static int faraday_pci_probe(struct platform_device *pdev) | |||
586 | * We encode bridge variants here, we have at least two so it doesn't | 586 | * We encode bridge variants here, we have at least two so it doesn't |
587 | * hurt to have infrastructure to encompass future variants as well. | 587 | * hurt to have infrastructure to encompass future variants as well. |
588 | */ | 588 | */ |
589 | const struct faraday_pci_variant faraday_regular = { | 589 | static const struct faraday_pci_variant faraday_regular = { |
590 | .cascaded_irq = true, | 590 | .cascaded_irq = true, |
591 | }; | 591 | }; |
592 | 592 | ||
593 | const struct faraday_pci_variant faraday_dual = { | 593 | static const struct faraday_pci_variant faraday_dual = { |
594 | .cascaded_irq = false, | 594 | .cascaded_irq = false, |
595 | }; | 595 | }; |
596 | 596 | ||
diff --git a/drivers/pci/host/pci-v3-semi.c b/drivers/pci/host/pci-v3-semi.c index 7fef64869d19..0a4dea796663 100644 --- a/drivers/pci/host/pci-v3-semi.c +++ b/drivers/pci/host/pci-v3-semi.c | |||
@@ -673,7 +673,7 @@ static int v3_get_dma_range_config(struct v3_pci *v3, | |||
673 | dev_err(v3->dev, "illegal dma memory chunk size\n"); | 673 | dev_err(v3->dev, "illegal dma memory chunk size\n"); |
674 | return -EINVAL; | 674 | return -EINVAL; |
675 | break; | 675 | break; |
676 | }; | 676 | } |
677 | val |= V3_PCI_MAP_M_REG_EN | V3_PCI_MAP_M_ENABLE; | 677 | val |= V3_PCI_MAP_M_REG_EN | V3_PCI_MAP_M_ENABLE; |
678 | *pci_map = val; | 678 | *pci_map = val; |
679 | 679 | ||
diff --git a/drivers/pci/host/pcie-iproc-bcma.c b/drivers/pci/host/pcie-iproc-bcma.c index 603c83429cb3..aa55b064f64d 100644 --- a/drivers/pci/host/pcie-iproc-bcma.c +++ b/drivers/pci/host/pcie-iproc-bcma.c | |||
@@ -25,8 +25,7 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_BROADCOM, 0x8012, bcma_pcie2_fixup_class); | |||
25 | 25 | ||
26 | static int iproc_pcie_bcma_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) | 26 | static int iproc_pcie_bcma_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) |
27 | { | 27 | { |
28 | struct pci_sys_data *sys = dev->sysdata; | 28 | struct iproc_pcie *pcie = dev->sysdata; |
29 | struct iproc_pcie *pcie = sys->private_data; | ||
30 | struct bcma_device *bdev = container_of(pcie->dev, struct bcma_device, dev); | 29 | struct bcma_device *bdev = container_of(pcie->dev, struct bcma_device, dev); |
31 | 30 | ||
32 | return bcma_core_irq(bdev, 5); | 31 | return bcma_core_irq(bdev, 5); |
diff --git a/drivers/pci/host/pcie-iproc.c b/drivers/pci/host/pcie-iproc.c index cbb095481cdc..3c76c5fa4f32 100644 --- a/drivers/pci/host/pcie-iproc.c +++ b/drivers/pci/host/pcie-iproc.c | |||
@@ -377,14 +377,7 @@ static const u16 iproc_pcie_reg_paxc_v2[] = { | |||
377 | 377 | ||
378 | static inline struct iproc_pcie *iproc_data(struct pci_bus *bus) | 378 | static inline struct iproc_pcie *iproc_data(struct pci_bus *bus) |
379 | { | 379 | { |
380 | struct iproc_pcie *pcie; | 380 | struct iproc_pcie *pcie = bus->sysdata; |
381 | #ifdef CONFIG_ARM | ||
382 | struct pci_sys_data *sys = bus->sysdata; | ||
383 | |||
384 | pcie = sys->private_data; | ||
385 | #else | ||
386 | pcie = bus->sysdata; | ||
387 | #endif | ||
388 | return pcie; | 381 | return pcie; |
389 | } | 382 | } |
390 | 383 | ||
@@ -1331,7 +1324,6 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res) | |||
1331 | { | 1324 | { |
1332 | struct device *dev; | 1325 | struct device *dev; |
1333 | int ret; | 1326 | int ret; |
1334 | void *sysdata; | ||
1335 | struct pci_bus *child; | 1327 | struct pci_bus *child; |
1336 | struct pci_host_bridge *host = pci_host_bridge_from_priv(pcie); | 1328 | struct pci_host_bridge *host = pci_host_bridge_from_priv(pcie); |
1337 | 1329 | ||
@@ -1376,13 +1368,6 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res) | |||
1376 | goto err_power_off_phy; | 1368 | goto err_power_off_phy; |
1377 | } | 1369 | } |
1378 | 1370 | ||
1379 | #ifdef CONFIG_ARM | ||
1380 | pcie->sysdata.private_data = pcie; | ||
1381 | sysdata = &pcie->sysdata; | ||
1382 | #else | ||
1383 | sysdata = pcie; | ||
1384 | #endif | ||
1385 | |||
1386 | ret = iproc_pcie_check_link(pcie); | 1371 | ret = iproc_pcie_check_link(pcie); |
1387 | if (ret) { | 1372 | if (ret) { |
1388 | dev_err(dev, "no PCIe EP device detected\n"); | 1373 | dev_err(dev, "no PCIe EP device detected\n"); |
@@ -1399,7 +1384,7 @@ int iproc_pcie_setup(struct iproc_pcie *pcie, struct list_head *res) | |||
1399 | host->busnr = 0; | 1384 | host->busnr = 0; |
1400 | host->dev.parent = dev; | 1385 | host->dev.parent = dev; |
1401 | host->ops = &iproc_pcie_ops; | 1386 | host->ops = &iproc_pcie_ops; |
1402 | host->sysdata = sysdata; | 1387 | host->sysdata = pcie; |
1403 | host->map_irq = pcie->map_irq; | 1388 | host->map_irq = pcie->map_irq; |
1404 | host->swizzle_irq = pci_common_swizzle; | 1389 | host->swizzle_irq = pci_common_swizzle; |
1405 | 1390 | ||
diff --git a/drivers/pci/host/pcie-iproc.h b/drivers/pci/host/pcie-iproc.h index d55f56a186cd..814b600b383a 100644 --- a/drivers/pci/host/pcie-iproc.h +++ b/drivers/pci/host/pcie-iproc.h | |||
@@ -54,7 +54,6 @@ struct iproc_msi; | |||
54 | * @reg_offsets: register offsets | 54 | * @reg_offsets: register offsets |
55 | * @base: PCIe host controller I/O register base | 55 | * @base: PCIe host controller I/O register base |
56 | * @base_addr: PCIe host controller register base physical address | 56 | * @base_addr: PCIe host controller register base physical address |
57 | * @sysdata: Per PCI controller data (ARM-specific) | ||
58 | * @root_bus: pointer to root bus | 57 | * @root_bus: pointer to root bus |
59 | * @phy: optional PHY device that controls the Serdes | 58 | * @phy: optional PHY device that controls the Serdes |
60 | * @map_irq: function callback to map interrupts | 59 | * @map_irq: function callback to map interrupts |
@@ -80,9 +79,6 @@ struct iproc_pcie { | |||
80 | u16 *reg_offsets; | 79 | u16 *reg_offsets; |
81 | void __iomem *base; | 80 | void __iomem *base; |
82 | phys_addr_t base_addr; | 81 | phys_addr_t base_addr; |
83 | #ifdef CONFIG_ARM | ||
84 | struct pci_sys_data sysdata; | ||
85 | #endif | ||
86 | struct resource mem; | 82 | struct resource mem; |
87 | struct pci_bus *root_bus; | 83 | struct pci_bus *root_bus; |
88 | struct phy *phy; | 84 | struct phy *phy; |
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index b4c4aad2cf66..6ab28f29ac6a 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c | |||
@@ -435,7 +435,7 @@ static void rcar_pcie_force_speedup(struct rcar_pcie *pcie) | |||
435 | } | 435 | } |
436 | 436 | ||
437 | msleep(1); | 437 | msleep(1); |
438 | }; | 438 | } |
439 | 439 | ||
440 | dev_err(dev, "Speed change timed out\n"); | 440 | dev_err(dev, "Speed change timed out\n"); |
441 | 441 | ||