linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc/fsl: add property 'reg' to pcie@0 node
@ 2013-05-08  9:17 Minghuan Lian
  2013-05-09 10:41 ` Kevin Hao
  0 siblings, 1 reply; 2+ messages in thread
From: Minghuan Lian @ 2013-05-08  9:17 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: Minghuan Lian, Zang Roy-R61911

The property 'reg' is used to identify the PCIe device. if there is
no 'reg' the PCI driver can not find PCI device node corresponding
to PCI controller, and can not map the interrupts. So all the INTx
interrupts can not be used.

Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
---
 arch/powerpc/boot/dts/fsl/b4si-post.dtsi    | 1 +
 arch/powerpc/boot/dts/fsl/t4240si-post.dtsi | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/arch/powerpc/boot/dts/fsl/b4si-post.dtsi b/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
index 7399154..d82c8da 100644
--- a/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
@@ -49,6 +49,7 @@
 	interrupts = <20 2 0 0>;
 	fsl,iommu-parent = <&pamu0>;
 	pcie@0 {
+		reg = <0 0 0 0 0>;
 		#interrupt-cells = <1>;
 		#size-cells = <2>;
 		#address-cells = <3>;
diff --git a/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi b/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
index bd611a9..3a6179f 100644
--- a/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
+++ b/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
@@ -48,6 +48,7 @@
 	bus-range = <0x0 0xff>;
 	interrupts = <20 2 0 0>;
 	pcie@0 {
+		reg = <0 0 0 0 0>;
 		#interrupt-cells = <1>;
 		#size-cells = <2>;
 		#address-cells = <3>;
@@ -74,6 +75,7 @@
 	bus-range = <0 0xff>;
 	interrupts = <21 2 0 0>;
 	pcie@0 {
+		reg = <0 0 0 0 0>;
 		#interrupt-cells = <1>;
 		#size-cells = <2>;
 		#address-cells = <3>;
@@ -100,6 +102,7 @@
 	bus-range = <0x0 0xff>;
 	interrupts = <22 2 0 0>;
 	pcie@0 {
+		reg = <0 0 0 0 0>;
 		#interrupt-cells = <1>;
 		#size-cells = <2>;
 		#address-cells = <3>;
@@ -126,6 +129,7 @@
 	bus-range = <0x0 0xff>;
 	interrupts = <23 2 0 0>;
 	pcie@0 {
+		reg = <0 0 0 0 0>;
 		#interrupt-cells = <1>;
 		#size-cells = <2>;
 		#address-cells = <3>;
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] powerpc/fsl: add property 'reg' to pcie@0 node
  2013-05-08  9:17 [PATCH] powerpc/fsl: add property 'reg' to pcie@0 node Minghuan Lian
@ 2013-05-09 10:41 ` Kevin Hao
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hao @ 2013-05-09 10:41 UTC (permalink / raw)
  To: Minghuan Lian; +Cc: linuxppc-dev, Zang Roy-R61911

[-- Attachment #1: Type: text/plain, Size: 2976 bytes --]

On Wed, May 08, 2013 at 05:17:21PM +0800, Minghuan Lian wrote:
> The property 'reg' is used to identify the PCIe device. if there is
> no 'reg' the PCI driver can not find PCI device node corresponding
> to PCI controller, and can not map the interrupts. So all the INTx
> interrupts can not be used.

The fix for this issue has already been merged into upstream kernel.
commit 9e2ecdbba3b0745f9ed454ab86961e3ccf9dc224
Author: Kevin Hao <haokexin@gmail.com>
Date:   Sun Apr 14 13:40:13 2013 +0800

    powerpc/fsl-booke: add the reg prop for pci bridge device node for T4/B4
    
    The reg property in the pci bridge device node is used to bind this
    device node to the pci bridge device. Then all the pci devices under
    this bridge could use the interrupt maps defined in this device node
    to do the irq translation. So if this property is missed, the pci
    traditional irq mechanism will not work.
    
    Signed-off-by: Kevin Hao <haokexin@gmail.com>
    Signed-off-by: Kumar Gala <galak@kernel.crashing.org>

Thanks,
Kevin

> 
> Signed-off-by: Minghuan Lian <Minghuan.Lian@freescale.com>
> ---
>  arch/powerpc/boot/dts/fsl/b4si-post.dtsi    | 1 +
>  arch/powerpc/boot/dts/fsl/t4240si-post.dtsi | 4 ++++
>  2 files changed, 5 insertions(+)
> 
> diff --git a/arch/powerpc/boot/dts/fsl/b4si-post.dtsi b/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
> index 7399154..d82c8da 100644
> --- a/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
> +++ b/arch/powerpc/boot/dts/fsl/b4si-post.dtsi
> @@ -49,6 +49,7 @@
>  	interrupts = <20 2 0 0>;
>  	fsl,iommu-parent = <&pamu0>;
>  	pcie@0 {
> +		reg = <0 0 0 0 0>;
>  		#interrupt-cells = <1>;
>  		#size-cells = <2>;
>  		#address-cells = <3>;
> diff --git a/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi b/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
> index bd611a9..3a6179f 100644
> --- a/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
> +++ b/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
> @@ -48,6 +48,7 @@
>  	bus-range = <0x0 0xff>;
>  	interrupts = <20 2 0 0>;
>  	pcie@0 {
> +		reg = <0 0 0 0 0>;
>  		#interrupt-cells = <1>;
>  		#size-cells = <2>;
>  		#address-cells = <3>;
> @@ -74,6 +75,7 @@
>  	bus-range = <0 0xff>;
>  	interrupts = <21 2 0 0>;
>  	pcie@0 {
> +		reg = <0 0 0 0 0>;
>  		#interrupt-cells = <1>;
>  		#size-cells = <2>;
>  		#address-cells = <3>;
> @@ -100,6 +102,7 @@
>  	bus-range = <0x0 0xff>;
>  	interrupts = <22 2 0 0>;
>  	pcie@0 {
> +		reg = <0 0 0 0 0>;
>  		#interrupt-cells = <1>;
>  		#size-cells = <2>;
>  		#address-cells = <3>;
> @@ -126,6 +129,7 @@
>  	bus-range = <0x0 0xff>;
>  	interrupts = <23 2 0 0>;
>  	pcie@0 {
> +		reg = <0 0 0 0 0>;
>  		#interrupt-cells = <1>;
>  		#size-cells = <2>;
>  		#address-cells = <3>;
> -- 
> 1.8.1.2
> 
> 
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev

[-- Attachment #2: Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-09 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-08  9:17 [PATCH] powerpc/fsl: add property 'reg' to pcie@0 node Minghuan Lian
2013-05-09 10:41 ` Kevin Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).