Re: [PATCH] MIPS: pci-rt2880: set pci controller of_node

2018-09-06 Thread Paul Burton
Hi Matthias,

On Wed, Sep 05, 2018 at 08:51:26AM +0200, Mathias Kresin wrote:
> From: Tobias Wolf 
> 
> Set the PCI controller of_node such that PCI devices can be
> instantiated via device tree.
> 
> Signed-off-by: Tobias Wolf 
> Signed-off-by: Mathias Kresin 
> ---
>  arch/mips/pci/pci-rt2880.c | 2 ++
>  1 file changed, 2 insertions(+)

Thanks - applied to mips-next for 4.20.

Paul


Re: [PATCH] MIPS: pci-rt2880: set pci controller of_node

2018-09-06 Thread Paul Burton
Hi Matthias,

On Wed, Sep 05, 2018 at 08:51:26AM +0200, Mathias Kresin wrote:
> From: Tobias Wolf 
> 
> Set the PCI controller of_node such that PCI devices can be
> instantiated via device tree.
> 
> Signed-off-by: Tobias Wolf 
> Signed-off-by: Mathias Kresin 
> ---
>  arch/mips/pci/pci-rt2880.c | 2 ++
>  1 file changed, 2 insertions(+)

Thanks - applied to mips-next for 4.20.

Paul


Re: [PATCH] MIPS: pci-rt2880: set pci controller of_node

2018-09-05 Thread John Crispin




On 05/09/18 08:51, Mathias Kresin wrote:

From: Tobias Wolf 

Set the PCI controller of_node such that PCI devices can be
instantiated via device tree.

Signed-off-by: Tobias Wolf 
Signed-off-by: Mathias Kresin 

Acked-by: John Crispin 


---
  arch/mips/pci/pci-rt2880.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/arch/mips/pci/pci-rt2880.c b/arch/mips/pci/pci-rt2880.c
index 711cdcc..f376a1d 100644
--- a/arch/mips/pci/pci-rt2880.c
+++ b/arch/mips/pci/pci-rt2880.c
@@ -246,6 +246,8 @@ static int rt288x_pci_probe(struct platform_device *pdev)
rt2880_pci_write_u32(PCI_BASE_ADDRESS_0, 0x0800);
(void) rt2880_pci_read_u32(PCI_BASE_ADDRESS_0);
  
+	rt2880_pci_controller.of_node = pdev->dev.of_node;

+
register_pci_controller(_pci_controller);
return 0;
  }




Re: [PATCH] MIPS: pci-rt2880: set pci controller of_node

2018-09-05 Thread John Crispin




On 05/09/18 08:51, Mathias Kresin wrote:

From: Tobias Wolf 

Set the PCI controller of_node such that PCI devices can be
instantiated via device tree.

Signed-off-by: Tobias Wolf 
Signed-off-by: Mathias Kresin 

Acked-by: John Crispin 


---
  arch/mips/pci/pci-rt2880.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/arch/mips/pci/pci-rt2880.c b/arch/mips/pci/pci-rt2880.c
index 711cdcc..f376a1d 100644
--- a/arch/mips/pci/pci-rt2880.c
+++ b/arch/mips/pci/pci-rt2880.c
@@ -246,6 +246,8 @@ static int rt288x_pci_probe(struct platform_device *pdev)
rt2880_pci_write_u32(PCI_BASE_ADDRESS_0, 0x0800);
(void) rt2880_pci_read_u32(PCI_BASE_ADDRESS_0);
  
+	rt2880_pci_controller.of_node = pdev->dev.of_node;

+
register_pci_controller(_pci_controller);
return 0;
  }




[PATCH] MIPS: pci-rt2880: set pci controller of_node

2018-09-05 Thread Mathias Kresin
From: Tobias Wolf 

Set the PCI controller of_node such that PCI devices can be
instantiated via device tree.

Signed-off-by: Tobias Wolf 
Signed-off-by: Mathias Kresin 
---
 arch/mips/pci/pci-rt2880.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/pci/pci-rt2880.c b/arch/mips/pci/pci-rt2880.c
index 711cdcc..f376a1d 100644
--- a/arch/mips/pci/pci-rt2880.c
+++ b/arch/mips/pci/pci-rt2880.c
@@ -246,6 +246,8 @@ static int rt288x_pci_probe(struct platform_device *pdev)
rt2880_pci_write_u32(PCI_BASE_ADDRESS_0, 0x0800);
(void) rt2880_pci_read_u32(PCI_BASE_ADDRESS_0);
 
+   rt2880_pci_controller.of_node = pdev->dev.of_node;
+
register_pci_controller(_pci_controller);
return 0;
 }
-- 
2.7.4



[PATCH] MIPS: pci-rt2880: set pci controller of_node

2018-09-05 Thread Mathias Kresin
From: Tobias Wolf 

Set the PCI controller of_node such that PCI devices can be
instantiated via device tree.

Signed-off-by: Tobias Wolf 
Signed-off-by: Mathias Kresin 
---
 arch/mips/pci/pci-rt2880.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/pci/pci-rt2880.c b/arch/mips/pci/pci-rt2880.c
index 711cdcc..f376a1d 100644
--- a/arch/mips/pci/pci-rt2880.c
+++ b/arch/mips/pci/pci-rt2880.c
@@ -246,6 +246,8 @@ static int rt288x_pci_probe(struct platform_device *pdev)
rt2880_pci_write_u32(PCI_BASE_ADDRESS_0, 0x0800);
(void) rt2880_pci_read_u32(PCI_BASE_ADDRESS_0);
 
+   rt2880_pci_controller.of_node = pdev->dev.of_node;
+
register_pci_controller(_pci_controller);
return 0;
 }
-- 
2.7.4