Skip to contentSkip to conversation

PCI: MVEBU: Remove duplicate clock get

PATCH Applied Andrew Lunn 4 participants 8 messages Dec 4, 2013 – Dec 18, 2013 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: MVEBU: Remove duplicate clock get

Probably due to a merge conflict resolution gone bad, the pci clock is got twice. Remove the second redundent of_clk_get_by_name().

---
 drivers/pci/host/pci-mvebu.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/pci/host/pci-mvebu.c +0 -8
index c269e430c760..96352be58cc9 100644
@@ -949,14 +949,6 @@ static int mvebu_pcie_probe(struct platform_device *pdev)
 
 		mvebu_pcie_set_local_dev_nr(port, 1);
 
-		port->clk = of_clk_get_by_name(child, NULL);
-		if (IS_ERR(port->clk)) {
-			dev_err(&pdev->dev, "PCIe%d.%d: cannot get clock\n",
-			       port->port, port->lane);
-			iounmap(port->base);
-			continue;
-		}
-
 		port->dn = child;
 		spin_lock_init(&port->conf_lock);
 		mvebu_sw_pci_bridge_init(port);
Signature · 1 line
1.8.5
Reviewed-by
#2 lore raw
Quoted 10 lines · Jason Cooper
Quoted 7 lines · Andrew Lunn

Probably due to a merge conflict resolution gone bad, the pci clock is got twice. Remove the second redundent of_clk_get_by_name().

---
 drivers/pci/host/pci-mvebu.c | 8 --------
 1 file changed, 8 deletions(-)

(+cc Jason Gunthorpe)

Yes, right. :-)
Original patch did not include the redundent of_clk_get_by_name().

Best regards,
Jingoo Han

maintainer Applied
#3 lore raw
In reply to Andrew Lunn
Quoted 4 lines · Andrew Lunn

Probably due to a merge conflict resolution gone bad, the pci clock is got twice. Remove the second redundent of_clk_get_by_name().

Applied to my pci/host-mvebu branch for v3.14, thanks!

Bjorn

Quoted 26 lines
---
 drivers/pci/host/pci-mvebu.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/pci/host/pci-mvebu.c +0 -8
index c269e430c760..96352be58cc9 100644
@@ -949,14 +949,6 @@ static int mvebu_pcie_probe(struct platform_device *pdev)
 
 		mvebu_pcie_set_local_dev_nr(port, 1);
 
-		port->clk = of_clk_get_by_name(child, NULL);
-		if (IS_ERR(port->clk)) {
-			dev_err(&pdev->dev, "PCIe%d.%d: cannot get clock\n",
-			       port->port, port->lane);
-			iounmap(port->base);
-			continue;
-		}
-
 		port->dn = child;
 		spin_lock_init(&port->conf_lock);
 		mvebu_sw_pci_bridge_init(port);
Signature · 1 line
1.8.5
#4 lore raw
In reply to Andrew Lunn
Quoted 7 lines · Andrew Lunn

Probably due to a merge conflict resolution gone bad, the pci clock is got twice. Remove the second redundent of_clk_get_by_name().

---
 drivers/pci/host/pci-mvebu.c | 8 --------
 1 file changed, 8 deletions(-)

Hi Folks

This patch has been Acked by Jingoo Han.

So my question is, which maintainer is going to accept it for mainline? Is there anything i need to do?

Thanks
Andrew

Quoted 23 lines
drivers/pci/host/pci-mvebu.c +0 -8
index c269e430c760..96352be58cc9 100644
@@ -949,14 +949,6 @@ static int mvebu_pcie_probe(struct platform_device *pdev)
 
 		mvebu_pcie_set_local_dev_nr(port, 1);
 
-		port->clk = of_clk_get_by_name(child, NULL);
-		if (IS_ERR(port->clk)) {
-			dev_err(&pdev->dev, "PCIe%d.%d: cannot get clock\n",
-			       port->port, port->lane);
-			iounmap(port->base);
-			continue;
-		}
-
 		port->dn = child;
 		spin_lock_init(&port->conf_lock);
 		mvebu_sw_pci_bridge_init(port);
Signature · 1 line
1.8.5
Acked-by
#5 lore raw

Andrew,

Quoted 9 lines · Andrew Lunn
Quoted 7 lines · Andrew Lunn

Probably due to a merge conflict resolution gone bad, the pci clock is got twice. Remove the second redundent of_clk_get_by_name().

---
 drivers/pci/host/pci-mvebu.c | 8 --------
 1 file changed, 8 deletions(-)
Quoted 6 lines

Hi Folks

This patch has been Acked by Jingoo Han.

So my question is, which maintainer is going to accept it for mainline? Is there anything i need to do?

I'll create a branch for Bjorn to pull. Or, if Bjorn wants to take it directly,

thx,

Jason.

maintainer
#6 lore raw
Quoted 18 lines · Jason Cooper

Andrew,

Quoted 15 lines · Andrew Lunn
Quoted 7 lines · Andrew Lunn

Probably due to a merge conflict resolution gone bad, the pci clock is got twice. Remove the second redundent of_clk_get_by_name().

---
 drivers/pci/host/pci-mvebu.c | 8 --------
 1 file changed, 8 deletions(-)

Hi Folks

This patch has been Acked by Jingoo Han.

So my question is, which maintainer is going to accept it for mainline? Is there anything i need to do?

I already applied it: http://lkml.kernel.org/r/[email protected]

You don't need to do anything more.

Quoted 8 lines

I'll create a branch for Bjorn to pull. Or, if Bjorn wants to take it directly,

thx,

Jason.

#7 lore raw
In reply to Andrew Lunn
Quoted 4 lines · Andrew Lunn
Quoted 3 lines · Andrew Lunn

Probably due to a merge conflict resolution gone bad, the pci clock is got twice. Remove the second redundent of_clk_get_by_name().

Quoted 8 lines
Quoted 4 lines
---
 drivers/pci/host/pci-mvebu.c | 8 --------
 1 file changed, 8 deletions(-)

Hi Folks

This patch has been Acked by Jingoo Han.

I just 'Reviewed', not 'Acked'. :-)

Quoted 3 lines

So my question is, which maintainer is going to accept it for mainline? Is there anything i need to do?

As Bjorn said, this patch was already applied to 'pci/host-mvebu' branch for v3.14.

Also, MVEBU PCIe will be maintained by Thomas Petazzoni, and Jason Cooper as below.

PCI DRIVER FOR MVEBU (Marvell Armada 370 and Armada XP SOC support)

M:     Thomas Petazzoni <[email protected]>
M:     Jason Cooper <[email protected]>
L:     [email protected]
L:     [email protected] (moderated for non-subscribers)
S:     Maintained
F:     drivers/pci/host/*mvebu*

Thank you.

Best regards,
Jingoo Han