diff options
Diffstat (limited to 'drivers/pci/host')
| -rw-r--r-- | drivers/pci/host/pci-layerscape.c | 1 | ||||
| -rw-r--r-- | drivers/pci/host/pci-mvebu.c | 15 | ||||
| -rw-r--r-- | drivers/pci/host/pci-tegra.c | 13 | ||||
| -rw-r--r-- | drivers/pci/host/pci-xgene.c | 2 | ||||
| -rw-r--r-- | drivers/pci/host/pcie-designware.c | 3 | ||||
| -rw-r--r-- | drivers/pci/host/pcie-rcar.c | 7 | ||||
| -rw-r--r-- | drivers/pci/host/pcie-xilinx.c | 4 |
7 files changed, 7 insertions, 38 deletions
diff --git a/drivers/pci/host/pci-layerscape.c b/drivers/pci/host/pci-layerscape.c index 6697b1a4d4fa..68c9e5e9b0a8 100644 --- a/drivers/pci/host/pci-layerscape.c +++ b/drivers/pci/host/pci-layerscape.c | |||
| @@ -167,7 +167,6 @@ MODULE_DEVICE_TABLE(of, ls_pcie_of_match); | |||
| 167 | static struct platform_driver ls_pcie_driver = { | 167 | static struct platform_driver ls_pcie_driver = { |
| 168 | .driver = { | 168 | .driver = { |
| 169 | .name = "layerscape-pcie", | 169 | .name = "layerscape-pcie", |
| 170 | .owner = THIS_MODULE, | ||
| 171 | .of_match_table = ls_pcie_of_match, | 170 | .of_match_table = ls_pcie_of_match, |
| 172 | }, | 171 | }, |
| 173 | }; | 172 | }; |
diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c index 1dd759596b0a..1309cfbaa719 100644 --- a/drivers/pci/host/pci-mvebu.c +++ b/drivers/pci/host/pci-mvebu.c | |||
| @@ -101,9 +101,7 @@ struct mvebu_pcie { | |||
| 101 | struct mvebu_pcie_port *ports; | 101 | struct mvebu_pcie_port *ports; |
| 102 | struct msi_controller *msi; | 102 | struct msi_controller *msi; |
| 103 | struct resource io; | 103 | struct resource io; |
| 104 | char io_name[30]; | ||
| 105 | struct resource realio; | 104 | struct resource realio; |
| 106 | char mem_name[30]; | ||
| 107 | struct resource mem; | 105 | struct resource mem; |
| 108 | struct resource busn; | 106 | struct resource busn; |
| 109 | int nports; | 107 | int nports; |
| @@ -723,18 +721,9 @@ static int mvebu_pcie_setup(int nr, struct pci_sys_data *sys) | |||
| 723 | { | 721 | { |
| 724 | struct mvebu_pcie *pcie = sys_to_pcie(sys); | 722 | struct mvebu_pcie *pcie = sys_to_pcie(sys); |
| 725 | int i; | 723 | int i; |
| 726 | int domain = 0; | ||
| 727 | 724 | ||
| 728 | #ifdef CONFIG_PCI_DOMAINS | 725 | pcie->mem.name = "PCI MEM"; |
| 729 | domain = sys->domain; | 726 | pcie->realio.name = "PCI I/O"; |
| 730 | #endif | ||
| 731 | |||
| 732 | snprintf(pcie->mem_name, sizeof(pcie->mem_name), "PCI MEM %04x", | ||
| 733 | domain); | ||
| 734 | pcie->mem.name = pcie->mem_name; | ||
| 735 | |||
| 736 | snprintf(pcie->io_name, sizeof(pcie->io_name), "PCI I/O %04x", domain); | ||
| 737 | pcie->realio.name = pcie->io_name; | ||
| 738 | 727 | ||
| 739 | if (request_resource(&iomem_resource, &pcie->mem)) | 728 | if (request_resource(&iomem_resource, &pcie->mem)) |
| 740 | return 0; | 729 | return 0; |
diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c index a800ae916394..6f9c29fa70e7 100644 --- a/drivers/pci/host/pci-tegra.c +++ b/drivers/pci/host/pci-tegra.c | |||
| @@ -625,19 +625,6 @@ static void tegra_pcie_port_free(struct tegra_pcie_port *port) | |||
| 625 | devm_kfree(pcie->dev, port); | 625 | devm_kfree(pcie->dev, port); |
| 626 | } | 626 | } |
| 627 | 627 | ||
| 628 | static void tegra_pcie_fixup_bridge(struct pci_dev *dev) | ||
| 629 | { | ||
| 630 | u16 reg; | ||
| 631 | |||
| 632 | if ((dev->class >> 16) == PCI_BASE_CLASS_BRIDGE) { | ||
| 633 | pci_read_config_word(dev, PCI_COMMAND, ®); | ||
| 634 | reg |= (PCI_COMMAND_IO | PCI_COMMAND_MEMORY | | ||
| 635 | PCI_COMMAND_MASTER | PCI_COMMAND_SERR); | ||
| 636 | pci_write_config_word(dev, PCI_COMMAND, reg); | ||
| 637 | } | ||
| 638 | } | ||
| 639 | DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, tegra_pcie_fixup_bridge); | ||
| 640 | |||
| 641 | /* Tegra PCIE root complex wrongly reports device class */ | 628 | /* Tegra PCIE root complex wrongly reports device class */ |
| 642 | static void tegra_pcie_fixup_class(struct pci_dev *dev) | 629 | static void tegra_pcie_fixup_class(struct pci_dev *dev) |
| 643 | { | 630 | { |
diff --git a/drivers/pci/host/pci-xgene.c b/drivers/pci/host/pci-xgene.c index b1d0596457c5..fdb348d3ccd3 100644 --- a/drivers/pci/host/pci-xgene.c +++ b/drivers/pci/host/pci-xgene.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | * GNU General Public License for more details. | 16 | * GNU General Public License for more details. |
| 17 | * | 17 | * |
| 18 | */ | 18 | */ |
| 19 | #include <linux/clk-private.h> | 19 | #include <linux/clk.h> |
| 20 | #include <linux/delay.h> | 20 | #include <linux/delay.h> |
| 21 | #include <linux/io.h> | 21 | #include <linux/io.h> |
| 22 | #include <linux/jiffies.h> | 22 | #include <linux/jiffies.h> |
diff --git a/drivers/pci/host/pcie-designware.c b/drivers/pci/host/pcie-designware.c index df781cdf13c1..eef311115899 100644 --- a/drivers/pci/host/pcie-designware.c +++ b/drivers/pci/host/pcie-designware.c | |||
| @@ -508,9 +508,6 @@ int __init dw_pcie_host_init(struct pcie_port *pp) | |||
| 508 | dw_pci.private_data = (void **)&pp; | 508 | dw_pci.private_data = (void **)&pp; |
| 509 | 509 | ||
| 510 | pci_common_init_dev(pp->dev, &dw_pci); | 510 | pci_common_init_dev(pp->dev, &dw_pci); |
| 511 | #ifdef CONFIG_PCI_DOMAINS | ||
| 512 | dw_pci.domain++; | ||
| 513 | #endif | ||
| 514 | 511 | ||
| 515 | return 0; | 512 | return 0; |
| 516 | } | 513 | } |
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 748786c402fc..c57bd0ac39a0 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c | |||
| @@ -397,9 +397,6 @@ static void rcar_pcie_enable(struct rcar_pcie *pcie) | |||
| 397 | #endif | 397 | #endif |
| 398 | 398 | ||
| 399 | pci_common_init_dev(&pdev->dev, &rcar_pci); | 399 | pci_common_init_dev(&pdev->dev, &rcar_pci); |
| 400 | #ifdef CONFIG_PCI_DOMAINS | ||
| 401 | rcar_pci.domain++; | ||
| 402 | #endif | ||
| 403 | } | 400 | } |
| 404 | 401 | ||
| 405 | static int phy_wait_for_ack(struct rcar_pcie *pcie) | 402 | static int phy_wait_for_ack(struct rcar_pcie *pcie) |
| @@ -757,7 +754,7 @@ static int rcar_pcie_get_resources(struct platform_device *pdev, | |||
| 757 | goto err_map_reg; | 754 | goto err_map_reg; |
| 758 | 755 | ||
| 759 | i = irq_of_parse_and_map(pdev->dev.of_node, 0); | 756 | i = irq_of_parse_and_map(pdev->dev.of_node, 0); |
| 760 | if (i < 0) { | 757 | if (!i) { |
| 761 | dev_err(pcie->dev, "cannot get platform resources for msi interrupt\n"); | 758 | dev_err(pcie->dev, "cannot get platform resources for msi interrupt\n"); |
| 762 | err = -ENOENT; | 759 | err = -ENOENT; |
| 763 | goto err_map_reg; | 760 | goto err_map_reg; |
| @@ -765,7 +762,7 @@ static int rcar_pcie_get_resources(struct platform_device *pdev, | |||
| 765 | pcie->msi.irq1 = i; | 762 | pcie->msi.irq1 = i; |
| 766 | 763 | ||
| 767 | i = irq_of_parse_and_map(pdev->dev.of_node, 1); | 764 | i = irq_of_parse_and_map(pdev->dev.of_node, 1); |
| 768 | if (i < 0) { | 765 | if (!i) { |
| 769 | dev_err(pcie->dev, "cannot get platform resources for msi interrupt\n"); | 766 | dev_err(pcie->dev, "cannot get platform resources for msi interrupt\n"); |
| 770 | err = -ENOENT; | 767 | err = -ENOENT; |
| 771 | goto err_map_reg; | 768 | goto err_map_reg; |
diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index ef3ebaf9a738..ce1c61d85b2c 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c | |||
| @@ -148,10 +148,10 @@ static inline bool xilinx_pcie_link_is_up(struct xilinx_pcie_port *port) | |||
| 148 | */ | 148 | */ |
| 149 | static void xilinx_pcie_clear_err_interrupts(struct xilinx_pcie_port *port) | 149 | static void xilinx_pcie_clear_err_interrupts(struct xilinx_pcie_port *port) |
| 150 | { | 150 | { |
| 151 | u32 val = pcie_read(port, XILINX_PCIE_REG_RPEFR); | 151 | unsigned long val = pcie_read(port, XILINX_PCIE_REG_RPEFR); |
| 152 | 152 | ||
| 153 | if (val & XILINX_PCIE_RPEFR_ERR_VALID) { | 153 | if (val & XILINX_PCIE_RPEFR_ERR_VALID) { |
| 154 | dev_dbg(port->dev, "Requester ID %d\n", | 154 | dev_dbg(port->dev, "Requester ID %lu\n", |
| 155 | val & XILINX_PCIE_RPEFR_REQ_ID); | 155 | val & XILINX_PCIE_RPEFR_REQ_ID); |
| 156 | pcie_write(port, XILINX_PCIE_RPEFR_ALL_MASK, | 156 | pcie_write(port, XILINX_PCIE_RPEFR_ALL_MASK, |
| 157 | XILINX_PCIE_REG_RPEFR); | 157 | XILINX_PCIE_REG_RPEFR); |
