1 commit e84634dc6c7f3f6af9b8ef1fb36f0d85c476ab95
2 Author: Tim Harvey <tharvey@gateworks.com>
3 Date: Thu Feb 27 01:02:23 2014 -0800
5 PCI: designware: add ability for custom swizzle
7 Add the ability for a platform driver to provide a platform-specific
10 Signed-off-by: Tim Harvey <tharvey@gateworks.com>
12 --- a/drivers/pci/host/pcie-designware.c
13 +++ b/drivers/pci/host/pcie-designware.c
14 @@ -492,6 +492,9 @@ int dw_pcie_host_init(struct pcie_port *
15 if (pp->ops->host_init)
16 pp->ops->host_init(pp);
19 + dw_pci.swizzle = pp->swizzle;
21 dw_pcie_wr_own_conf(pp, PCI_BASE_ADDRESS_0, 4, 0);
23 /* program correct class for RC */
24 --- a/drivers/pci/host/pcie-designware.h
25 +++ b/drivers/pci/host/pcie-designware.h
26 @@ -53,6 +53,7 @@ struct pcie_port {
27 struct irq_domain *irq_domain;
28 unsigned long msi_data;
29 DECLARE_BITMAP(msi_irq_in_use, MAX_MSI_IRQS);
30 + u8 (*swizzle)(struct pci_dev *, u8 *);
33 struct pcie_host_ops {