diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2017-09-07 14:24:20 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-09-07 14:24:20 -0400 |
commit | 27e87395ae3497ebb63942150e43999c93a83ed0 (patch) | |
tree | 6b8694a556139117401653a5bea2ddff9470bcc9 | |
parent | 9198407e23ec89f0e1562f439771aeea83345d0d (diff) | |
parent | 96291d565550c1fd363e488cc17cb3189d2e4cc2 (diff) |
Merge branch 'pci/trivial' into next
* pci/trivial:
PCI: Fix typos and whitespace errors
PCI: Remove unused "res" variable from pci_resource_io()
PCI: Correct kernel-doc of pci_vpd_srdt_size(), pci_vpd_srdt_tag()
39 files changed, 101 insertions, 108 deletions
@@ -2090,7 +2090,7 @@ S: Kuala Lumpur, Malaysia | |||
2090 | 2090 | ||
2091 | N: Mohit Kumar | 2091 | N: Mohit Kumar |
2092 | D: ST Microelectronics SPEAr13xx PCI host bridge driver | 2092 | D: ST Microelectronics SPEAr13xx PCI host bridge driver |
2093 | D: Synopsys Designware PCI host bridge driver | 2093 | D: Synopsys DesignWare PCI host bridge driver |
2094 | 2094 | ||
2095 | N: Gabor Kuti | 2095 | N: Gabor Kuti |
2096 | E: seasons@falcon.sch.bme.hu | 2096 | E: seasons@falcon.sch.bme.hu |
diff --git a/Documentation/devicetree/bindings/pci/83xx-512x-pci.txt b/Documentation/devicetree/bindings/pci/83xx-512x-pci.txt index 35a465362408..b9165b72473c 100644 --- a/Documentation/devicetree/bindings/pci/83xx-512x-pci.txt +++ b/Documentation/devicetree/bindings/pci/83xx-512x-pci.txt | |||
@@ -1,11 +1,11 @@ | |||
1 | * Freescale 83xx and 512x PCI bridges | 1 | * Freescale 83xx and 512x PCI bridges |
2 | 2 | ||
3 | Freescale 83xx and 512x SOCs include the same pci bridge core. | 3 | Freescale 83xx and 512x SOCs include the same PCI bridge core. |
4 | 4 | ||
5 | 83xx/512x specific notes: | 5 | 83xx/512x specific notes: |
6 | - reg: should contain two address length tuples | 6 | - reg: should contain two address length tuples |
7 | The first is for the internal pci bridge registers | 7 | The first is for the internal PCI bridge registers |
8 | The second is for the pci config space access registers | 8 | The second is for the PCI config space access registers |
9 | 9 | ||
10 | Example (MPC8313ERDB) | 10 | Example (MPC8313ERDB) |
11 | pci0: pci@e0008500 { | 11 | pci0: pci@e0008500 { |
diff --git a/Documentation/devicetree/bindings/pci/altera-pcie.txt b/Documentation/devicetree/bindings/pci/altera-pcie.txt index 2951a6a50704..495880193adc 100644 --- a/Documentation/devicetree/bindings/pci/altera-pcie.txt +++ b/Documentation/devicetree/bindings/pci/altera-pcie.txt | |||
@@ -7,21 +7,21 @@ Required properties: | |||
7 | "Txs": TX slave port region | 7 | "Txs": TX slave port region |
8 | "Cra": Control register access region | 8 | "Cra": Control register access region |
9 | - interrupt-parent: interrupt source phandle. | 9 | - interrupt-parent: interrupt source phandle. |
10 | - interrupts: specifies the interrupt source of the parent interrupt controller. | 10 | - interrupts: specifies the interrupt source of the parent interrupt |
11 | The format of the interrupt specifier depends on the parent interrupt | 11 | controller. The format of the interrupt specifier depends |
12 | controller. | 12 | on the parent interrupt controller. |
13 | - device_type: must be "pci" | 13 | - device_type: must be "pci" |
14 | - #address-cells: set to <3> | 14 | - #address-cells: set to <3> |
15 | - #size-cells: set to <2> | 15 | - #size-cells: set to <2> |
16 | - #interrupt-cells: set to <1> | 16 | - #interrupt-cells: set to <1> |
17 | - ranges: describes the translation of addresses for root ports and standard | 17 | - ranges: describes the translation of addresses for root ports and |
18 | PCI regions. | 18 | standard PCI regions. |
19 | - interrupt-map-mask and interrupt-map: standard PCI properties to define the | 19 | - interrupt-map-mask and interrupt-map: standard PCI properties to define the |
20 | mapping of the PCIe interface to interrupt numbers. | 20 | mapping of the PCIe interface to interrupt numbers. |
21 | 21 | ||
22 | Optional properties: | 22 | Optional properties: |
23 | - msi-parent: Link to the hardware entity that serves as the MSI controller for this PCIe | 23 | - msi-parent: Link to the hardware entity that serves as the MSI controller |
24 | controller. | 24 | for this PCIe controller. |
25 | - bus-range: PCI bus numbers covered | 25 | - bus-range: PCI bus numbers covered |
26 | 26 | ||
27 | Example | 27 | Example |
@@ -45,5 +45,5 @@ Example | |||
45 | <0 0 0 3 &pcie_0 3>, | 45 | <0 0 0 3 &pcie_0 3>, |
46 | <0 0 0 4 &pcie_0 4>; | 46 | <0 0 0 4 &pcie_0 4>; |
47 | ranges = <0x82000000 0x00000000 0x00000000 0xc0000000 0x00000000 0x10000000 | 47 | ranges = <0x82000000 0x00000000 0x00000000 0xc0000000 0x00000000 0x10000000 |
48 | 0x82000000 0x00000000 0x10000000 0xd0000000 0x00000000 0x10000000>; | 48 | 0x82000000 0x00000000 0x10000000 0xd0000000 0x00000000 0x10000000>; |
49 | }; | 49 | }; |
diff --git a/Documentation/devicetree/bindings/pci/axis,artpec6-pcie.txt b/Documentation/devicetree/bindings/pci/axis,artpec6-pcie.txt index 5ecaea1e6eee..4e4aee4439ea 100644 --- a/Documentation/devicetree/bindings/pci/axis,artpec6-pcie.txt +++ b/Documentation/devicetree/bindings/pci/axis,artpec6-pcie.txt | |||
@@ -6,7 +6,7 @@ and thus inherits all the common properties defined in designware-pcie.txt. | |||
6 | Required properties: | 6 | Required properties: |
7 | - compatible: "axis,artpec6-pcie", "snps,dw-pcie" | 7 | - compatible: "axis,artpec6-pcie", "snps,dw-pcie" |
8 | - reg: base addresses and lengths of the PCIe controller (DBI), | 8 | - reg: base addresses and lengths of the PCIe controller (DBI), |
9 | the phy controller, and configuration address space. | 9 | the PHY controller, and configuration address space. |
10 | - reg-names: Must include the following entries: | 10 | - reg-names: Must include the following entries: |
11 | - "dbi" | 11 | - "dbi" |
12 | - "phy" | 12 | - "phy" |
diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt b/Documentation/devicetree/bindings/pci/designware-pcie.txt index b2480dd38c11..1da7ade3183c 100644 --- a/Documentation/devicetree/bindings/pci/designware-pcie.txt +++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | * Synopsys Designware PCIe interface | 1 | * Synopsys DesignWare PCIe interface |
2 | 2 | ||
3 | Required properties: | 3 | Required properties: |
4 | - compatible: should contain "snps,dw-pcie" to identify the core. | 4 | - compatible: should contain "snps,dw-pcie" to identify the core. |
@@ -17,29 +17,27 @@ RC mode: | |||
17 | properties to define the mapping of the PCIe interface to interrupt | 17 | properties to define the mapping of the PCIe interface to interrupt |
18 | numbers. | 18 | numbers. |
19 | EP mode: | 19 | EP mode: |
20 | - num-ib-windows: number of inbound address translation | 20 | - num-ib-windows: number of inbound address translation windows |
21 | windows | 21 | - num-ob-windows: number of outbound address translation windows |
22 | - num-ob-windows: number of outbound address translation | ||
23 | windows | ||
24 | 22 | ||
25 | Optional properties: | 23 | Optional properties: |
26 | - num-lanes: number of lanes to use (this property should be specified unless | 24 | - num-lanes: number of lanes to use (this property should be specified unless |
27 | the link is brought already up in BIOS) | 25 | the link is brought already up in BIOS) |
28 | - reset-gpio: gpio pin number of power good signal | 26 | - reset-gpio: GPIO pin number of power good signal |
29 | - clocks: Must contain an entry for each entry in clock-names. | 27 | - clocks: Must contain an entry for each entry in clock-names. |
30 | See ../clocks/clock-bindings.txt for details. | 28 | See ../clocks/clock-bindings.txt for details. |
31 | - clock-names: Must include the following entries: | 29 | - clock-names: Must include the following entries: |
32 | - "pcie" | 30 | - "pcie" |
33 | - "pcie_bus" | 31 | - "pcie_bus" |
34 | RC mode: | 32 | RC mode: |
35 | - num-viewport: number of view ports configured in | 33 | - num-viewport: number of view ports configured in hardware. If a platform |
36 | hardware. If a platform does not specify it, the driver assumes 2. | 34 | does not specify it, the driver assumes 2. |
37 | - bus-range: PCI bus numbers covered (it is recommended | 35 | - bus-range: PCI bus numbers covered (it is recommended for new devicetrees |
38 | for new devicetrees to specify this property, to keep backwards | 36 | to specify this property, to keep backwards compatibility a range of |
39 | compatibility a range of 0x00-0xff is assumed if not present) | 37 | 0x00-0xff is assumed if not present) |
38 | |||
40 | EP mode: | 39 | EP mode: |
41 | - max-functions: maximum number of functions that can be | 40 | - max-functions: maximum number of functions that can be configured |
42 | configured | ||
43 | 41 | ||
44 | Example configuration: | 42 | Example configuration: |
45 | 43 | ||
diff --git a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt index cf92d3ba5a26..7b1e48bf172b 100644 --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt +++ b/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt | |||
@@ -1,6 +1,6 @@ | |||
1 | * Freescale i.MX6 PCIe interface | 1 | * Freescale i.MX6 PCIe interface |
2 | 2 | ||
3 | This PCIe host controller is based on the Synopsis Designware PCIe IP | 3 | This PCIe host controller is based on the Synopsys DesignWare PCIe IP |
4 | and thus inherits all the common properties defined in designware-pcie.txt. | 4 | and thus inherits all the common properties defined in designware-pcie.txt. |
5 | 5 | ||
6 | Required properties: | 6 | Required properties: |
diff --git a/Documentation/devicetree/bindings/pci/hisilicon-pcie.txt b/Documentation/devicetree/bindings/pci/hisilicon-pcie.txt index a339dbb15493..b0fd3ba66ec9 100644 --- a/Documentation/devicetree/bindings/pci/hisilicon-pcie.txt +++ b/Documentation/devicetree/bindings/pci/hisilicon-pcie.txt | |||
@@ -1,7 +1,7 @@ | |||
1 | HiSilicon Hip05 and Hip06 PCIe host bridge DT description | 1 | HiSilicon Hip05 and Hip06 PCIe host bridge DT description |
2 | 2 | ||
3 | HiSilicon PCIe host controller is based on Designware PCI core. | 3 | HiSilicon PCIe host controller is based on the Synopsys DesignWare PCI core. |
4 | It shares common functions with PCIe Designware core driver and inherits | 4 | It shares common functions with the PCIe DesignWare core driver and inherits |
5 | common properties defined in | 5 | common properties defined in |
6 | Documentation/devicetree/bindings/pci/designware-pci.txt. | 6 | Documentation/devicetree/bindings/pci/designware-pci.txt. |
7 | 7 | ||
diff --git a/Documentation/devicetree/bindings/pci/kirin-pcie.txt b/Documentation/devicetree/bindings/pci/kirin-pcie.txt index 68ffa0fbcd73..6e217c63123d 100644 --- a/Documentation/devicetree/bindings/pci/kirin-pcie.txt +++ b/Documentation/devicetree/bindings/pci/kirin-pcie.txt | |||
@@ -1,8 +1,8 @@ | |||
1 | HiSilicon Kirin SoCs PCIe host DT description | 1 | HiSilicon Kirin SoCs PCIe host DT description |
2 | 2 | ||
3 | Kirin PCIe host controller is based on Designware PCI core. | 3 | Kirin PCIe host controller is based on the Synopsys DesignWare PCI core. |
4 | It shares common functions with PCIe Designware core driver | 4 | It shares common functions with the PCIe DesignWare core driver and |
5 | and inherits common properties defined in | 5 | inherits common properties defined in |
6 | Documentation/devicetree/bindings/pci/designware-pci.txt. | 6 | Documentation/devicetree/bindings/pci/designware-pci.txt. |
7 | 7 | ||
8 | Additional properties are described here: | 8 | Additional properties are described here: |
@@ -16,7 +16,7 @@ Required properties | |||
16 | "apb": apb Ctrl register defined by Kirin; | 16 | "apb": apb Ctrl register defined by Kirin; |
17 | "phy": apb PHY register defined by Kirin; | 17 | "phy": apb PHY register defined by Kirin; |
18 | "config": PCIe configuration space registers. | 18 | "config": PCIe configuration space registers. |
19 | - reset-gpios: The gpio to generate PCIe perst assert and deassert signal. | 19 | - reset-gpios: The GPIO to generate PCIe PERST# assert and deassert signal. |
20 | 20 | ||
21 | Optional properties: | 21 | Optional properties: |
22 | 22 | ||
diff --git a/Documentation/devicetree/bindings/pci/layerscape-pci.txt b/Documentation/devicetree/bindings/pci/layerscape-pci.txt index ebf3feffed8a..c0484da0f20d 100644 --- a/Documentation/devicetree/bindings/pci/layerscape-pci.txt +++ b/Documentation/devicetree/bindings/pci/layerscape-pci.txt | |||
@@ -18,7 +18,7 @@ Required properties: | |||
18 | "fsl,ls2088a-pcie" | 18 | "fsl,ls2088a-pcie" |
19 | "fsl,ls1088a-pcie" | 19 | "fsl,ls1088a-pcie" |
20 | "fsl,ls1046a-pcie" | 20 | "fsl,ls1046a-pcie" |
21 | - reg: base addresses and lengths of the PCIe controller | 21 | - reg: base addresses and lengths of the PCIe controller register blocks. |
22 | - interrupts: A list of interrupt outputs of the controller. Must contain an | 22 | - interrupts: A list of interrupt outputs of the controller. Must contain an |
23 | entry for each entry in the interrupt-names property. | 23 | entry for each entry in the interrupt-names property. |
24 | - interrupt-names: Must include the following entries: | 24 | - interrupt-names: Must include the following entries: |
diff --git a/Documentation/devicetree/bindings/pci/mvebu-pci.txt b/Documentation/devicetree/bindings/pci/mvebu-pci.txt index 2de6f65ecfb1..196e034f6879 100644 --- a/Documentation/devicetree/bindings/pci/mvebu-pci.txt +++ b/Documentation/devicetree/bindings/pci/mvebu-pci.txt | |||
@@ -77,7 +77,7 @@ and the following optional properties: | |||
77 | - marvell,pcie-lane: the physical PCIe lane number, for ports having | 77 | - marvell,pcie-lane: the physical PCIe lane number, for ports having |
78 | multiple lanes. If this property is not found, we assume that the | 78 | multiple lanes. If this property is not found, we assume that the |
79 | value is 0. | 79 | value is 0. |
80 | - reset-gpios: optional gpio to PERST# | 80 | - reset-gpios: optional GPIO to PERST# |
81 | - reset-delay-us: delay in us to wait after reset de-assertion, if not | 81 | - reset-delay-us: delay in us to wait after reset de-assertion, if not |
82 | specified will default to 100ms, as required by the PCIe specification. | 82 | specified will default to 100ms, as required by the PCIe specification. |
83 | 83 | ||
diff --git a/Documentation/devicetree/bindings/pci/pci-armada8k.txt b/Documentation/devicetree/bindings/pci/pci-armada8k.txt index 598533a57d79..c54a84350ec8 100644 --- a/Documentation/devicetree/bindings/pci/pci-armada8k.txt +++ b/Documentation/devicetree/bindings/pci/pci-armada8k.txt | |||
@@ -1,6 +1,6 @@ | |||
1 | * Marvell Armada 7K/8K PCIe interface | 1 | * Marvell Armada 7K/8K PCIe interface |
2 | 2 | ||
3 | This PCIe host controller is based on the Synopsis Designware PCIe IP | 3 | This PCIe host controller is based on the Synopsys DesignWare PCIe IP |
4 | and thus inherits all the common properties defined in designware-pcie.txt. | 4 | and thus inherits all the common properties defined in designware-pcie.txt. |
5 | 5 | ||
6 | Required properties: | 6 | Required properties: |
diff --git a/Documentation/devicetree/bindings/pci/pci-keystone.txt b/Documentation/devicetree/bindings/pci/pci-keystone.txt index d08a4d51108f..7e05487544ed 100644 --- a/Documentation/devicetree/bindings/pci/pci-keystone.txt +++ b/Documentation/devicetree/bindings/pci/pci-keystone.txt | |||
@@ -1,12 +1,12 @@ | |||
1 | TI Keystone PCIe interface | 1 | TI Keystone PCIe interface |
2 | 2 | ||
3 | Keystone PCI host Controller is based on Designware PCI h/w version 3.65. | 3 | Keystone PCI host Controller is based on the Synopsys DesignWare PCI |
4 | It shares common functions with PCIe Designware core driver and inherit | 4 | hardware version 3.65. It shares common functions with the PCIe DesignWare |
5 | common properties defined in | 5 | core driver and inherits common properties defined in |
6 | Documentation/devicetree/bindings/pci/designware-pci.txt | 6 | Documentation/devicetree/bindings/pci/designware-pci.txt |
7 | 7 | ||
8 | Please refer to Documentation/devicetree/bindings/pci/designware-pci.txt | 8 | Please refer to Documentation/devicetree/bindings/pci/designware-pci.txt |
9 | for the details of Designware DT bindings. Additional properties are | 9 | for the details of DesignWare DT bindings. Additional properties are |
10 | described here as well as properties that are not applicable. | 10 | described here as well as properties that are not applicable. |
11 | 11 | ||
12 | Required Properties:- | 12 | Required Properties:- |
@@ -52,13 +52,12 @@ pcie_intc: Interrupt controller device node for Legacy IRQ chip | |||
52 | }; | 52 | }; |
53 | 53 | ||
54 | Optional properties:- | 54 | Optional properties:- |
55 | phys: phandle to Generic Keystone SerDes phy for PCI | 55 | phys: phandle to generic Keystone SerDes PHY for PCI |
56 | phy-names: name of the Generic Keystine SerDes phy for PCI | 56 | phy-names: name of the generic Keystone SerDes PHY for PCI |
57 | - If boot loader already does PCI link establishment, then phys and | 57 | - If boot loader already does PCI link establishment, then phys and |
58 | phy-names shouldn't be present. | 58 | phy-names shouldn't be present. |
59 | interrupts: platform interrupt for error interrupts. | 59 | interrupts: platform interrupt for error interrupts. |
60 | 60 | ||
61 | Designware DT Properties not applicable for Keystone PCI | 61 | DesignWare DT Properties not applicable for Keystone PCI |
62 | 62 | ||
63 | 1. pcie_bus clock-names not used. Instead, a phandle to phys is used. | 63 | 1. pcie_bus clock-names not used. Instead, a phandle to phys is used. |
64 | |||
diff --git a/Documentation/devicetree/bindings/pci/qcom,pcie.txt b/Documentation/devicetree/bindings/pci/qcom,pcie.txt index b3e36eff1c7d..3c9d321b3d3b 100644 --- a/Documentation/devicetree/bindings/pci/qcom,pcie.txt +++ b/Documentation/devicetree/bindings/pci/qcom,pcie.txt | |||
@@ -21,7 +21,7 @@ | |||
21 | Value type: <stringlist> | 21 | Value type: <stringlist> |
22 | Definition: Must include the following entries | 22 | Definition: Must include the following entries |
23 | - "parf" Qualcomm specific registers | 23 | - "parf" Qualcomm specific registers |
24 | - "dbi" Designware PCIe registers | 24 | - "dbi" DesignWare PCIe registers |
25 | - "elbi" External local bus interface registers | 25 | - "elbi" External local bus interface registers |
26 | - "config" PCIe configuration space | 26 | - "config" PCIe configuration space |
27 | 27 | ||
@@ -203,7 +203,7 @@ | |||
203 | - <name>-gpios: | 203 | - <name>-gpios: |
204 | Usage: optional | 204 | Usage: optional |
205 | Value type: <prop-encoded-array> | 205 | Value type: <prop-encoded-array> |
206 | Definition: List of phandle and gpio specifier pairs. Should contain | 206 | Definition: List of phandle and GPIO specifier pairs. Should contain |
207 | - "perst-gpios" PCIe endpoint reset signal line | 207 | - "perst-gpios" PCIe endpoint reset signal line |
208 | - "wake-gpios" PCIe endpoint wake signal line | 208 | - "wake-gpios" PCIe endpoint wake signal line |
209 | 209 | ||
diff --git a/Documentation/devicetree/bindings/pci/ralink,rt3883-pci.txt b/Documentation/devicetree/bindings/pci/ralink,rt3883-pci.txt index 8e0a1eb0acbb..a04ab1b76211 100644 --- a/Documentation/devicetree/bindings/pci/ralink,rt3883-pci.txt +++ b/Documentation/devicetree/bindings/pci/ralink,rt3883-pci.txt | |||
@@ -71,7 +71,7 @@ | |||
71 | - interrupt-map: standard PCI properties to define the mapping of the | 71 | - interrupt-map: standard PCI properties to define the mapping of the |
72 | PCI interface to interrupt numbers. | 72 | PCI interface to interrupt numbers. |
73 | 73 | ||
74 | The PCI host bridge node migh have additional sub-nodes representing | 74 | The PCI host bridge node might have additional sub-nodes representing |
75 | the onboard PCI devices/PCI slots. Each such sub-node must have the | 75 | the onboard PCI devices/PCI slots. Each such sub-node must have the |
76 | following mandatory properties: | 76 | following mandatory properties: |
77 | 77 | ||
diff --git a/Documentation/devicetree/bindings/pci/rcar-pci.txt b/Documentation/devicetree/bindings/pci/rcar-pci.txt index bd27428dda61..6b5b388fbc99 100644 --- a/Documentation/devicetree/bindings/pci/rcar-pci.txt +++ b/Documentation/devicetree/bindings/pci/rcar-pci.txt | |||
@@ -14,7 +14,7 @@ compatible: "renesas,pcie-r8a7779" for the R8A7779 SoC; | |||
14 | SoC-specific version corresponding to the platform first | 14 | SoC-specific version corresponding to the platform first |
15 | followed by the generic version. | 15 | followed by the generic version. |
16 | 16 | ||
17 | - reg: base address and length of the pcie controller registers. | 17 | - reg: base address and length of the PCIe controller registers. |
18 | - #address-cells: set to <3> | 18 | - #address-cells: set to <3> |
19 | - #size-cells: set to <2> | 19 | - #size-cells: set to <2> |
20 | - bus-range: PCI bus numbers covered | 20 | - bus-range: PCI bus numbers covered |
@@ -25,15 +25,14 @@ compatible: "renesas,pcie-r8a7779" for the R8A7779 SoC; | |||
25 | source for hardware related interrupts (e.g. link speed change). | 25 | source for hardware related interrupts (e.g. link speed change). |
26 | - #interrupt-cells: set to <1> | 26 | - #interrupt-cells: set to <1> |
27 | - interrupt-map-mask and interrupt-map: standard PCI properties | 27 | - interrupt-map-mask and interrupt-map: standard PCI properties |
28 | to define the mapping of the PCIe interface to interrupt | 28 | to define the mapping of the PCIe interface to interrupt numbers. |
29 | numbers. | ||
30 | - clocks: from common clock binding: clock specifiers for the PCIe controller | 29 | - clocks: from common clock binding: clock specifiers for the PCIe controller |
31 | and PCIe bus clocks. | 30 | and PCIe bus clocks. |
32 | - clock-names: from common clock binding: should be "pcie" and "pcie_bus". | 31 | - clock-names: from common clock binding: should be "pcie" and "pcie_bus". |
33 | 32 | ||
34 | Example: | 33 | Example: |
35 | 34 | ||
36 | SoC specific DT Entry: | 35 | SoC-specific DT Entry: |
37 | 36 | ||
38 | pcie: pcie@fe000000 { | 37 | pcie: pcie@fe000000 { |
39 | compatible = "renesas,pcie-r8a7791", "renesas,pcie-rcar-gen2"; | 38 | compatible = "renesas,pcie-r8a7791", "renesas,pcie-rcar-gen2"; |
diff --git a/Documentation/devicetree/bindings/pci/rockchip-pcie.txt b/Documentation/devicetree/bindings/pci/rockchip-pcie.txt index 5678be82530d..af34c65773fd 100644 --- a/Documentation/devicetree/bindings/pci/rockchip-pcie.txt +++ b/Documentation/devicetree/bindings/pci/rockchip-pcie.txt | |||
@@ -55,7 +55,7 @@ Required properties for per-lane PHY model (preferred): | |||
55 | Optional Property: | 55 | Optional Property: |
56 | - aspm-no-l0s: RC won't support ASPM L0s. This property is needed if | 56 | - aspm-no-l0s: RC won't support ASPM L0s. This property is needed if |
57 | using 24MHz OSC for RC's PHY. | 57 | using 24MHz OSC for RC's PHY. |
58 | - ep-gpios: contain the entry for pre-reset gpio | 58 | - ep-gpios: contain the entry for pre-reset GPIO |
59 | - num-lanes: number of lanes to use | 59 | - num-lanes: number of lanes to use |
60 | - vpcie12v-supply: The phandle to the 12v regulator to use for PCIe. | 60 | - vpcie12v-supply: The phandle to the 12v regulator to use for PCIe. |
61 | - vpcie3v3-supply: The phandle to the 3.3v regulator to use for PCIe. | 61 | - vpcie3v3-supply: The phandle to the 3.3v regulator to use for PCIe. |
diff --git a/Documentation/devicetree/bindings/pci/samsung,exynos5440-pcie.txt b/Documentation/devicetree/bindings/pci/samsung,exynos5440-pcie.txt index 7d3b09474657..34a11bfbfb60 100644 --- a/Documentation/devicetree/bindings/pci/samsung,exynos5440-pcie.txt +++ b/Documentation/devicetree/bindings/pci/samsung,exynos5440-pcie.txt | |||
@@ -1,29 +1,29 @@ | |||
1 | * Samsung Exynos 5440 PCIe interface | 1 | * Samsung Exynos 5440 PCIe interface |
2 | 2 | ||
3 | This PCIe host controller is based on the Synopsis Designware PCIe IP | 3 | This PCIe host controller is based on the Synopsys DesignWare PCIe IP |
4 | and thus inherits all the common properties defined in designware-pcie.txt. | 4 | and thus inherits all the common properties defined in designware-pcie.txt. |
5 | 5 | ||
6 | Required properties: | 6 | Required properties: |
7 | - compatible: "samsung,exynos5440-pcie" | 7 | - compatible: "samsung,exynos5440-pcie" |
8 | - reg: base addresses and lengths of the pcie controller, | 8 | - reg: base addresses and lengths of the PCIe controller, |
9 | the phy controller, additional register for the phy controller. | 9 | the PHY controller, additional register for the PHY controller. |
10 | (Registers for the phy controller are DEPRECATED. | 10 | (Registers for the PHY controller are DEPRECATED. |
11 | Use the PHY framework.) | 11 | Use the PHY framework.) |
12 | - reg-names : First name should be set to "elbi". | 12 | - reg-names : First name should be set to "elbi". |
13 | And use the "config" instead of getting the confgiruation address space | 13 | And use the "config" instead of getting the configuration address space |
14 | from "ranges". | 14 | from "ranges". |
15 | NOTE: When use the "config" property, reg-names must be set. | 15 | NOTE: When using the "config" property, reg-names must be set. |
16 | - interrupts: A list of interrupt outputs for level interrupt, | 16 | - interrupts: A list of interrupt outputs for level interrupt, |
17 | pulse interrupt, special interrupt. | 17 | pulse interrupt, special interrupt. |
18 | - phys: From PHY binding. Phandle for the Generic PHY. | 18 | - phys: From PHY binding. Phandle for the generic PHY. |
19 | Refer to Documentation/devicetree/bindings/phy/samsung-phy.txt | 19 | Refer to Documentation/devicetree/bindings/phy/samsung-phy.txt |
20 | 20 | ||
21 | Other common properties refer to | 21 | For other common properties, refer to |
22 | Documentation/devicetree/binding/pci/designware-pcie.txt | 22 | Documentation/devicetree/bindings/pci/designware-pcie.txt |
23 | 23 | ||
24 | Example: | 24 | Example: |
25 | 25 | ||
26 | SoC specific DT Entry: | 26 | SoC-specific DT Entry: |
27 | 27 | ||
28 | pcie@290000 { | 28 | pcie@290000 { |
29 | compatible = "samsung,exynos5440-pcie", "snps,dw-pcie"; | 29 | compatible = "samsung,exynos5440-pcie", "snps,dw-pcie"; |
@@ -83,7 +83,7 @@ With using PHY framework: | |||
83 | ... | 83 | ... |
84 | }; | 84 | }; |
85 | 85 | ||
86 | Board specific DT Entry: | 86 | Board-specific DT Entry: |
87 | 87 | ||
88 | pcie@290000 { | 88 | pcie@290000 { |
89 | reset-gpio = <&pin_ctrl 5 0>; | 89 | reset-gpio = <&pin_ctrl 5 0>; |
diff --git a/Documentation/devicetree/bindings/pci/spear13xx-pcie.txt b/Documentation/devicetree/bindings/pci/spear13xx-pcie.txt index 49ea76da7718..d5a14f5dad46 100644 --- a/Documentation/devicetree/bindings/pci/spear13xx-pcie.txt +++ b/Documentation/devicetree/bindings/pci/spear13xx-pcie.txt | |||
@@ -1,12 +1,12 @@ | |||
1 | SPEAr13XX PCIe DT detail: | 1 | SPEAr13XX PCIe DT detail: |
2 | ================================ | 2 | ================================ |
3 | 3 | ||
4 | SPEAr13XX uses synopsis designware PCIe controller and ST MiPHY as phy | 4 | SPEAr13XX uses the Synopsys DesignWare PCIe controller and ST MiPHY as PHY |
5 | controller. | 5 | controller. |
6 | 6 | ||
7 | Required properties: | 7 | Required properties: |
8 | - compatible : should be "st,spear1340-pcie", "snps,dw-pcie". | 8 | - compatible : should be "st,spear1340-pcie", "snps,dw-pcie". |
9 | - phys : phandle to phy node associated with pcie controller | 9 | - phys : phandle to PHY node associated with PCIe controller |
10 | - phy-names : must be "pcie-phy" | 10 | - phy-names : must be "pcie-phy" |
11 | - All other definitions as per generic PCI bindings | 11 | - All other definitions as per generic PCI bindings |
12 | 12 | ||
diff --git a/Documentation/devicetree/bindings/pci/ti-pci.txt b/Documentation/devicetree/bindings/pci/ti-pci.txt index 6a07c96227e0..7f7af3044016 100644 --- a/Documentation/devicetree/bindings/pci/ti-pci.txt +++ b/Documentation/devicetree/bindings/pci/ti-pci.txt | |||
@@ -1,6 +1,6 @@ | |||
1 | TI PCI Controllers | 1 | TI PCI Controllers |
2 | 2 | ||
3 | PCIe Designware Controller | 3 | PCIe DesignWare Controller |
4 | - compatible: Should be "ti,dra7-pcie" for RC | 4 | - compatible: Should be "ti,dra7-pcie" for RC |
5 | Should be "ti,dra7-pcie-ep" for EP | 5 | Should be "ti,dra7-pcie-ep" for EP |
6 | - phys : list of PHY specifiers (used by generic PHY framework) | 6 | - phys : list of PHY specifiers (used by generic PHY framework) |
@@ -13,7 +13,7 @@ PCIe Designware Controller | |||
13 | HOST MODE | 13 | HOST MODE |
14 | ========= | 14 | ========= |
15 | - reg : Two register ranges as listed in the reg-names property | 15 | - reg : Two register ranges as listed in the reg-names property |
16 | - reg-names : The first entry must be "ti-conf" for the TI specific registers | 16 | - reg-names : The first entry must be "ti-conf" for the TI-specific registers |
17 | The second entry must be "rc-dbics" for the DesignWare PCIe | 17 | The second entry must be "rc-dbics" for the DesignWare PCIe |
18 | registers | 18 | registers |
19 | The third entry must be "config" for the PCIe configuration space | 19 | The third entry must be "config" for the PCIe configuration space |
@@ -30,7 +30,7 @@ HOST MODE | |||
30 | DEVICE MODE | 30 | DEVICE MODE |
31 | =========== | 31 | =========== |
32 | - reg : Four register ranges as listed in the reg-names property | 32 | - reg : Four register ranges as listed in the reg-names property |
33 | - reg-names : "ti-conf" for the TI specific registers | 33 | - reg-names : "ti-conf" for the TI-specific registers |
34 | "ep_dbics" for the standard configuration registers as | 34 | "ep_dbics" for the standard configuration registers as |
35 | they are locally accessed within the DIF CS space | 35 | they are locally accessed within the DIF CS space |
36 | "ep_dbics2" for the standard configuration registers as | 36 | "ep_dbics2" for the standard configuration registers as |
@@ -46,7 +46,7 @@ DEVICE MODE | |||
46 | access. | 46 | access. |
47 | 47 | ||
48 | Optional Property: | 48 | Optional Property: |
49 | - gpios : Should be added if a gpio line is required to drive PERST# line | 49 | - gpios : Should be added if a GPIO line is required to drive PERST# line |
50 | 50 | ||
51 | NOTE: Two DT nodes may be added for each PCI controller; one for host | 51 | NOTE: Two DT nodes may be added for each PCI controller; one for host |
52 | mode and another for device mode. So in order for PCI to | 52 | mode and another for device mode. So in order for PCI to |
diff --git a/Documentation/devicetree/bindings/pci/versatile.txt b/Documentation/devicetree/bindings/pci/versatile.txt index ebd1e7d0403e..0a702b13d2ac 100644 --- a/Documentation/devicetree/bindings/pci/versatile.txt +++ b/Documentation/devicetree/bindings/pci/versatile.txt | |||
@@ -5,7 +5,7 @@ PCI host controller found on the ARM Versatile PB board's FPGA. | |||
5 | Required properties: | 5 | Required properties: |
6 | - compatible: should contain "arm,versatile-pci" to identify the Versatile PCI | 6 | - compatible: should contain "arm,versatile-pci" to identify the Versatile PCI |
7 | controller. | 7 | controller. |
8 | - reg: base addresses and lengths of the pci controller. There must be 3 | 8 | - reg: base addresses and lengths of the PCI controller. There must be 3 |
9 | entries: | 9 | entries: |
10 | - Versatile-specific registers | 10 | - Versatile-specific registers |
11 | - Self Config space | 11 | - Self Config space |
diff --git a/Documentation/devicetree/bindings/pci/xgene-pci-msi.txt b/Documentation/devicetree/bindings/pci/xgene-pci-msi.txt index 36d881c8e6d4..09ac2dc3afc1 100644 --- a/Documentation/devicetree/bindings/pci/xgene-pci-msi.txt +++ b/Documentation/devicetree/bindings/pci/xgene-pci-msi.txt | |||
@@ -4,7 +4,7 @@ Required properties: | |||
4 | 4 | ||
5 | - compatible: should be "apm,xgene1-msi" to identify | 5 | - compatible: should be "apm,xgene1-msi" to identify |
6 | X-Gene v1 PCIe MSI controller block. | 6 | X-Gene v1 PCIe MSI controller block. |
7 | - msi-controller: indicates that this is X-Gene v1 PCIe MSI controller node | 7 | - msi-controller: indicates that this is an X-Gene v1 PCIe MSI controller node |
8 | - reg: physical base address (0x79000000) and length (0x900000) for controller | 8 | - reg: physical base address (0x79000000) and length (0x900000) for controller |
9 | registers. These registers include the MSI termination address and data | 9 | registers. These registers include the MSI termination address and data |
10 | registers as well as the MSI interrupt status registers. | 10 | registers as well as the MSI interrupt status registers. |
@@ -13,7 +13,8 @@ Required properties: | |||
13 | interrupt number 0x10 to 0x1f. | 13 | interrupt number 0x10 to 0x1f. |
14 | - interrupt-names: not required | 14 | - interrupt-names: not required |
15 | 15 | ||
16 | Each PCIe node needs to have property msi-parent that points to msi controller node | 16 | Each PCIe node needs to have property msi-parent that points to an MSI |
17 | controller node | ||
17 | 18 | ||
18 | Examples: | 19 | Examples: |
19 | 20 | ||
diff --git a/Documentation/devicetree/bindings/pci/xgene-pci.txt b/Documentation/devicetree/bindings/pci/xgene-pci.txt index 1070b068c7c6..6fd2decfa66c 100644 --- a/Documentation/devicetree/bindings/pci/xgene-pci.txt +++ b/Documentation/devicetree/bindings/pci/xgene-pci.txt | |||
@@ -8,7 +8,7 @@ Required properties: | |||
8 | property. | 8 | property. |
9 | - reg-names: Must include the following entries: | 9 | - reg-names: Must include the following entries: |
10 | "csr": controller configuration registers. | 10 | "csr": controller configuration registers. |
11 | "cfg": pcie configuration space registers. | 11 | "cfg": PCIe configuration space registers. |
12 | - #address-cells: set to <3> | 12 | - #address-cells: set to <3> |
13 | - #size-cells: set to <2> | 13 | - #size-cells: set to <2> |
14 | - ranges: ranges for the outbound memory, I/O regions. | 14 | - ranges: ranges for the outbound memory, I/O regions. |
@@ -21,11 +21,11 @@ Required properties: | |||
21 | 21 | ||
22 | Optional properties: | 22 | Optional properties: |
23 | - status: Either "ok" or "disabled". | 23 | - status: Either "ok" or "disabled". |
24 | - dma-coherent: Present if dma operations are coherent | 24 | - dma-coherent: Present if DMA operations are coherent |
25 | 25 | ||
26 | Example: | 26 | Example: |
27 | 27 | ||
28 | SoC specific DT Entry: | 28 | SoC-specific DT Entry: |
29 | 29 | ||
30 | pcie0: pcie@1f2b0000 { | 30 | pcie0: pcie@1f2b0000 { |
31 | status = "disabled"; | 31 | status = "disabled"; |
@@ -51,7 +51,7 @@ SoC specific DT Entry: | |||
51 | }; | 51 | }; |
52 | 52 | ||
53 | 53 | ||
54 | Board specific DT Entry: | 54 | Board-specific DT Entry: |
55 | &pcie0 { | 55 | &pcie0 { |
56 | status = "ok"; | 56 | status = "ok"; |
57 | }; | 57 | }; |
diff --git a/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt b/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt index 3259798a1192..01bf7fdf4c19 100644 --- a/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt +++ b/Documentation/devicetree/bindings/pci/xilinx-nwl-pcie.txt | |||
@@ -15,9 +15,9 @@ Required properties: | |||
15 | - device_type: must be "pci" | 15 | - device_type: must be "pci" |
16 | - interrupts: Should contain NWL PCIe interrupt | 16 | - interrupts: Should contain NWL PCIe interrupt |
17 | - interrupt-names: Must include the following entries: | 17 | - interrupt-names: Must include the following entries: |
18 | "msi1, msi0": interrupt asserted when MSI is received | 18 | "msi1, msi0": interrupt asserted when an MSI is received |
19 | "intx": interrupt asserted when a legacy interrupt is received | 19 | "intx": interrupt asserted when a legacy interrupt is received |
20 | "misc": interrupt asserted when miscellaneous is received | 20 | "misc": interrupt asserted when miscellaneous interrupt is received |
21 | - interrupt-map-mask and interrupt-map: standard PCI properties to define the | 21 | - interrupt-map-mask and interrupt-map: standard PCI properties to define the |
22 | mapping of the PCI interface to interrupt numbers. | 22 | mapping of the PCI interface to interrupt numbers. |
23 | - ranges: ranges for the PCI memory regions (I/O space region is not | 23 | - ranges: ranges for the PCI memory regions (I/O space region is not |
@@ -26,7 +26,8 @@ Required properties: | |||
26 | detailed explanation | 26 | detailed explanation |
27 | - msi-controller: indicates that this is MSI controller node | 27 | - msi-controller: indicates that this is MSI controller node |
28 | - msi-parent: MSI parent of the root complex itself | 28 | - msi-parent: MSI parent of the root complex itself |
29 | - legacy-interrupt-controller: Interrupt controller device node for Legacy interrupts | 29 | - legacy-interrupt-controller: Interrupt controller device node for Legacy |
30 | interrupts | ||
30 | - interrupt-controller: identifies the node as an interrupt controller | 31 | - interrupt-controller: identifies the node as an interrupt controller |
31 | - #interrupt-cells: should be set to 1 | 32 | - #interrupt-cells: should be set to 1 |
32 | - #address-cells: specifies the number of cells needed to encode an | 33 | - #address-cells: specifies the number of cells needed to encode an |
diff --git a/MAINTAINERS b/MAINTAINERS index 3ec39df93f93..e972e362444c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -10137,7 +10137,7 @@ L: linux-samsung-soc@vger.kernel.org (moderated for non-subscribers) | |||
10137 | S: Maintained | 10137 | S: Maintained |
10138 | F: drivers/pci/dwc/pci-exynos.c | 10138 | F: drivers/pci/dwc/pci-exynos.c |
10139 | 10139 | ||
10140 | PCI DRIVER FOR SYNOPSIS DESIGNWARE | 10140 | PCI DRIVER FOR SYNOPSYS DESIGNWARE |
10141 | M: Jingoo Han <jingoohan1@gmail.com> | 10141 | M: Jingoo Han <jingoohan1@gmail.com> |
10142 | M: Joao Pinto <Joao.Pinto@synopsys.com> | 10142 | M: Joao Pinto <Joao.Pinto@synopsys.com> |
10143 | L: linux-pci@vger.kernel.org | 10143 | L: linux-pci@vger.kernel.org |
diff --git a/drivers/pci/dwc/Kconfig b/drivers/pci/dwc/Kconfig index d275aadc47ee..22ec82fcdea2 100644 --- a/drivers/pci/dwc/Kconfig +++ b/drivers/pci/dwc/Kconfig | |||
@@ -25,7 +25,7 @@ config PCI_DRA7XX | |||
25 | work either as EP or RC. In order to enable host-specific features | 25 | work either as EP or RC. In order to enable host-specific features |
26 | PCI_DRA7XX_HOST must be selected and in order to enable device- | 26 | PCI_DRA7XX_HOST must be selected and in order to enable device- |
27 | specific features PCI_DRA7XX_EP must be selected. This uses | 27 | specific features PCI_DRA7XX_EP must be selected. This uses |
28 | the Designware core. | 28 | the DesignWare core. |
29 | 29 | ||
30 | if PCI_DRA7XX | 30 | if PCI_DRA7XX |
31 | 31 | ||
@@ -97,8 +97,8 @@ config PCI_KEYSTONE | |||
97 | select PCIE_DW_HOST | 97 | select PCIE_DW_HOST |
98 | help | 98 | help |
99 | Say Y here if you want to enable PCI controller support on Keystone | 99 | Say Y here if you want to enable PCI controller support on Keystone |
100 | SoCs. The PCI controller on Keystone is based on Designware hardware | 100 | SoCs. The PCI controller on Keystone is based on DesignWare hardware |
101 | and therefore the driver re-uses the Designware core functions to | 101 | and therefore the driver re-uses the DesignWare core functions to |
102 | implement the driver. | 102 | implement the driver. |
103 | 103 | ||
104 | config PCI_LAYERSCAPE | 104 | config PCI_LAYERSCAPE |
@@ -132,7 +132,7 @@ config PCIE_QCOM | |||
132 | select PCIE_DW_HOST | 132 | select PCIE_DW_HOST |
133 | help | 133 | help |
134 | Say Y here to enable PCIe controller support on Qualcomm SoCs. The | 134 | Say Y here to enable PCIe controller support on Qualcomm SoCs. The |
135 | PCIe controller uses the Designware core plus Qualcomm-specific | 135 | PCIe controller uses the DesignWare core plus Qualcomm-specific |
136 | hardware wrappers. | 136 | hardware wrappers. |
137 | 137 | ||
138 | config PCIE_ARMADA_8K | 138 | config PCIE_ARMADA_8K |
@@ -145,8 +145,8 @@ config PCIE_ARMADA_8K | |||
145 | help | 145 | help |
146 | Say Y here if you want to enable PCIe controller support on | 146 | Say Y here if you want to enable PCIe controller support on |
147 | Armada-8K SoCs. The PCIe controller on Armada-8K is based on | 147 | Armada-8K SoCs. The PCIe controller on Armada-8K is based on |
148 | Designware hardware and therefore the driver re-uses the | 148 | DesignWare hardware and therefore the driver re-uses the |
149 | Designware core functions to implement the driver. | 149 | DesignWare core functions to implement the driver. |
150 | 150 | ||
151 | config PCIE_ARTPEC6 | 151 | config PCIE_ARTPEC6 |
152 | bool "Axis ARTPEC-6 PCIe controller" | 152 | bool "Axis ARTPEC-6 PCIe controller" |
diff --git a/drivers/pci/dwc/pci-dra7xx.c b/drivers/pci/dwc/pci-dra7xx.c index 1e2aaedbebf2..34427a6a15af 100644 --- a/drivers/pci/dwc/pci-dra7xx.c +++ b/drivers/pci/dwc/pci-dra7xx.c | |||
@@ -277,7 +277,6 @@ static irqreturn_t dra7xx_pcie_msi_irq_handler(int irq, void *arg) | |||
277 | return IRQ_HANDLED; | 277 | return IRQ_HANDLED; |
278 | } | 278 | } |
279 | 279 | ||
280 | |||
281 | static irqreturn_t dra7xx_pcie_irq_handler(int irq, void *arg) | 280 | static irqreturn_t dra7xx_pcie_irq_handler(int irq, void *arg) |
282 | { | 281 | { |
283 | struct dra7xx_pcie *dra7xx = arg; | 282 | struct dra7xx_pcie *dra7xx = arg; |
diff --git a/drivers/pci/dwc/pci-keystone-dw.c b/drivers/pci/dwc/pci-keystone-dw.c index 3b0f206590f9..2fb20b887d2a 100644 --- a/drivers/pci/dwc/pci-keystone-dw.c +++ b/drivers/pci/dwc/pci-keystone-dw.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Designware application register space functions for Keystone PCI controller | 2 | * DesignWare application register space functions for Keystone PCI controller |
3 | * | 3 | * |
4 | * Copyright (C) 2013-2014 Texas Instruments., Ltd. | 4 | * Copyright (C) 2013-2014 Texas Instruments., Ltd. |
5 | * http://www.ti.com | 5 | * http://www.ti.com |
diff --git a/drivers/pci/dwc/pcie-designware-ep.c b/drivers/pci/dwc/pcie-designware-ep.c index b3205df38d52..d53d5f168363 100644 --- a/drivers/pci/dwc/pcie-designware-ep.c +++ b/drivers/pci/dwc/pcie-designware-ep.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /** | 1 | /** |
2 | * Synopsys Designware PCIe Endpoint controller driver | 2 | * Synopsys DesignWare PCIe Endpoint controller driver |
3 | * | 3 | * |
4 | * Copyright (C) 2017 Texas Instruments | 4 | * Copyright (C) 2017 Texas Instruments |
5 | * Author: Kishon Vijay Abraham I <kishon@ti.com> | 5 | * Author: Kishon Vijay Abraham I <kishon@ti.com> |
diff --git a/drivers/pci/dwc/pcie-designware-host.c b/drivers/pci/dwc/pcie-designware-host.c index 0985aeee917c..81e2157a7cfb 100644 --- a/drivers/pci/dwc/pcie-designware-host.c +++ b/drivers/pci/dwc/pcie-designware-host.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Synopsys Designware PCIe host controller driver | 2 | * Synopsys DesignWare PCIe host controller driver |
3 | * | 3 | * |
4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. | 4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. |
5 | * http://www.samsung.com | 5 | * http://www.samsung.com |
diff --git a/drivers/pci/dwc/pcie-designware.c b/drivers/pci/dwc/pcie-designware.c index 50cef47fc25d..88abdddee2ad 100644 --- a/drivers/pci/dwc/pcie-designware.c +++ b/drivers/pci/dwc/pcie-designware.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Synopsys Designware PCIe host controller driver | 2 | * Synopsys DesignWare PCIe host controller driver |
3 | * | 3 | * |
4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. | 4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. |
5 | * http://www.samsung.com | 5 | * http://www.samsung.com |
diff --git a/drivers/pci/dwc/pcie-designware.h b/drivers/pci/dwc/pcie-designware.h index 744876d8ef66..e5d9d77b778e 100644 --- a/drivers/pci/dwc/pcie-designware.h +++ b/drivers/pci/dwc/pcie-designware.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Synopsys Designware PCIe host controller driver | 2 | * Synopsys DesignWare PCIe host controller driver |
3 | * | 3 | * |
4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. | 4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. |
5 | * http://www.samsung.com | 5 | * http://www.samsung.com |
diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index d205381c7ec4..9051c6c8fea4 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/drivers/pci/host/pcie-rockchip.c | |||
@@ -6,7 +6,7 @@ | |||
6 | * Author: Shawn Lin <shawn.lin@rock-chips.com> | 6 | * Author: Shawn Lin <shawn.lin@rock-chips.com> |
7 | * Wenrui Li <wenrui.li@rock-chips.com> | 7 | * Wenrui Li <wenrui.li@rock-chips.com> |
8 | * | 8 | * |
9 | * Bits taken from Synopsys Designware Host controller driver and | 9 | * Bits taken from Synopsys DesignWare Host controller driver and |
10 | * ARM PCI Host generic driver. | 10 | * ARM PCI Host generic driver. |
11 | * | 11 | * |
12 | * This program is free software: you can redistribute it and/or modify | 12 | * This program is free software: you can redistribute it and/or modify |
diff --git a/drivers/pci/host/pcie-xilinx.c b/drivers/pci/host/pcie-xilinx.c index f30d03309c7f..94e13cb8608f 100644 --- a/drivers/pci/host/pcie-xilinx.c +++ b/drivers/pci/host/pcie-xilinx.c | |||
@@ -5,7 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Based on the Tegra PCIe driver | 6 | * Based on the Tegra PCIe driver |
7 | * | 7 | * |
8 | * Bits taken from Synopsys Designware Host controller driver and | 8 | * Bits taken from Synopsys DesignWare Host controller driver and |
9 | * ARM PCI Host generic driver. | 9 | * ARM PCI Host generic driver. |
10 | * | 10 | * |
11 | * This program is free software: you can redistribute it and/or modify | 11 | * This program is free software: you can redistribute it and/or modify |
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index c9cdc8a1d48a..1eecfa301f7f 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -1211,11 +1211,8 @@ static ssize_t pci_resource_io(struct file *filp, struct kobject *kobj, | |||
1211 | { | 1211 | { |
1212 | struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); | 1212 | struct pci_dev *pdev = to_pci_dev(kobj_to_dev(kobj)); |
1213 | int bar = (unsigned long)attr->private; | 1213 | int bar = (unsigned long)attr->private; |
1214 | struct resource *res; | ||
1215 | unsigned long port = off; | 1214 | unsigned long port = off; |
1216 | 1215 | ||
1217 | res = &pdev->resource[bar]; | ||
1218 | |||
1219 | port += pci_resource_start(pdev, bar); | 1216 | port += pci_resource_start(pdev, bar); |
1220 | 1217 | ||
1221 | if (port > pci_resource_end(pdev, bar)) | 1218 | if (port > pci_resource_end(pdev, bar)) |
diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index b1303b32053f..890efcc574cb 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c | |||
@@ -5,10 +5,10 @@ | |||
5 | * License. See the file "COPYING" in the main directory of this archive | 5 | * License. See the file "COPYING" in the main directory of this archive |
6 | * for more details. | 6 | * for more details. |
7 | * | 7 | * |
8 | * This file implements the core part of PCI-Express AER. When an pci-express | 8 | * This file implements the core part of PCIe AER. When a PCIe |
9 | * error is delivered, an error message will be collected and printed to | 9 | * error is delivered, an error message will be collected and printed to |
10 | * console, then, an error recovery procedure will be executed by following | 10 | * console, then, an error recovery procedure will be executed by following |
11 | * the pci error recovery rules. | 11 | * the PCI error recovery rules. |
12 | * | 12 | * |
13 | * Copyright (C) 2006 Intel Corp. | 13 | * Copyright (C) 2006 Intel Corp. |
14 | * Tom Long Nguyen (tom.l.nguyen@intel.com) | 14 | * Tom Long Nguyen (tom.l.nguyen@intel.com) |
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 3fc0c3adc930..35dcd90f98c4 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c | |||
@@ -2061,7 +2061,7 @@ DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_INTEL, PCI_ANY_ID, | |||
2061 | 2061 | ||
2062 | /* | 2062 | /* |
2063 | * The 82575 and 82598 may experience data corruption issues when transitioning | 2063 | * The 82575 and 82598 may experience data corruption issues when transitioning |
2064 | * out of L0S. To prevent this we need to disable L0S on the pci-e link | 2064 | * out of L0S. To prevent this we need to disable L0S on the PCIe link. |
2065 | */ | 2065 | */ |
2066 | static void quirk_disable_aspm_l0s(struct pci_dev *dev) | 2066 | static void quirk_disable_aspm_l0s(struct pci_dev *dev) |
2067 | { | 2067 | { |
diff --git a/include/linux/aer.h b/include/linux/aer.h index 04602cbe85dc..43799bd17a02 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h | |||
@@ -39,7 +39,7 @@ struct aer_capability_regs { | |||
39 | }; | 39 | }; |
40 | 40 | ||
41 | #if defined(CONFIG_PCIEAER) | 41 | #if defined(CONFIG_PCIEAER) |
42 | /* pci-e port driver needs this function to enable aer */ | 42 | /* PCIe port driver needs this function to enable AER */ |
43 | int pci_enable_pcie_error_reporting(struct pci_dev *dev); | 43 | int pci_enable_pcie_error_reporting(struct pci_dev *dev); |
44 | int pci_disable_pcie_error_reporting(struct pci_dev *dev); | 44 | int pci_disable_pcie_error_reporting(struct pci_dev *dev); |
45 | int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); | 45 | int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); |
@@ -67,7 +67,6 @@ void cper_print_aer(struct pci_dev *dev, int aer_severity, | |||
67 | struct aer_capability_regs *aer); | 67 | struct aer_capability_regs *aer); |
68 | int cper_severity_to_aer(int cper_severity); | 68 | int cper_severity_to_aer(int cper_severity); |
69 | void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, | 69 | void aer_recover_queue(int domain, unsigned int bus, unsigned int devfn, |
70 | int severity, | 70 | int severity, struct aer_capability_regs *aer_regs); |
71 | struct aer_capability_regs *aer_regs); | ||
72 | #endif //_AER_H_ | 71 | #endif //_AER_H_ |
73 | 72 | ||
diff --git a/include/linux/pci.h b/include/linux/pci.h index d7af980188d4..0c72b63dcaaf 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -2111,7 +2111,7 @@ static inline u16 pci_vpd_lrdt_tag(const u8 *lrdt) | |||
2111 | 2111 | ||
2112 | /** | 2112 | /** |
2113 | * pci_vpd_srdt_size - Extracts the Small Resource Data Type length | 2113 | * pci_vpd_srdt_size - Extracts the Small Resource Data Type length |
2114 | * @lrdt: Pointer to the beginning of the Small Resource Data Type tag | 2114 | * @srdt: Pointer to the beginning of the Small Resource Data Type tag |
2115 | * | 2115 | * |
2116 | * Returns the extracted Small Resource Data Type length. | 2116 | * Returns the extracted Small Resource Data Type length. |
2117 | */ | 2117 | */ |
@@ -2122,7 +2122,7 @@ static inline u8 pci_vpd_srdt_size(const u8 *srdt) | |||
2122 | 2122 | ||
2123 | /** | 2123 | /** |
2124 | * pci_vpd_srdt_tag - Extracts the Small Resource Data Type Tag Item | 2124 | * pci_vpd_srdt_tag - Extracts the Small Resource Data Type Tag Item |
2125 | * @lrdt: Pointer to the beginning of the Small Resource Data Type tag | 2125 | * @srdt: Pointer to the beginning of the Small Resource Data Type tag |
2126 | * | 2126 | * |
2127 | * Returns the extracted Small Resource Data Type Tag Item. | 2127 | * Returns the extracted Small Resource Data Type Tag Item. |
2128 | */ | 2128 | */ |
diff --git a/include/linux/pcieport_if.h b/include/linux/pcieport_if.h index 18edc651c070..e8f3f7479224 100644 --- a/include/linux/pcieport_if.h +++ b/include/linux/pcieport_if.h | |||
@@ -38,7 +38,7 @@ static inline void set_service_data(struct pcie_device *dev, void *data) | |||
38 | dev->priv_data = data; | 38 | dev->priv_data = data; |
39 | } | 39 | } |
40 | 40 | ||
41 | static inline void* get_service_data(struct pcie_device *dev) | 41 | static inline void *get_service_data(struct pcie_device *dev) |
42 | { | 42 | { |
43 | return dev->priv_data; | 43 | return dev->priv_data; |
44 | } | 44 | } |