All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/9] dm: pci: return the real controller in pci_bus_to_hose()
@ 2016-10-10  8:47 Minghuan Lian
  2016-10-10  8:47 ` [U-Boot] [PATCH 2/9] dm: pci: remove pci_bus_to_hose(0) calling Minghuan Lian
                   ` (9 more replies)
  0 siblings, 10 replies; 26+ messages in thread
From: Minghuan Lian @ 2016-10-10  8:47 UTC (permalink / raw)
  To: u-boot

for the legacy PCI driver, the function pci_bus_to_hose() returns
the real PCIe controller. To keep consistency, this function is
changed to return the PCIe controller pointer of the root bus
instead of the current PCIe bus.

Signed-off-by: Minghuan Lian <Minghuan.Lian@nxp.com>
---
 drivers/pci/pci_compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci_compat.c b/drivers/pci/pci_compat.c
index ddaf358..25bc095 100644
--- a/drivers/pci/pci_compat.c
+++ b/drivers/pci/pci_compat.c
@@ -49,5 +49,5 @@ struct pci_controller *pci_bus_to_hose(int busnum)
 		return NULL;
 	}
 
-	return dev_get_uclass_priv(bus);
+	return dev_get_uclass_priv(pci_get_controller(bus));
 }
-- 
1.9.1

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

end of thread, other threads:[~2016-11-07 18:13 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-10  8:47 [U-Boot] [PATCH 1/9] dm: pci: return the real controller in pci_bus_to_hose() Minghuan Lian
2016-10-10  8:47 ` [U-Boot] [PATCH 2/9] dm: pci: remove pci_bus_to_hose(0) calling Minghuan Lian
2016-10-10 11:54   ` Bin Meng
2016-10-11  7:26     ` M.H. Lian
2016-10-10  8:47 ` [U-Boot] [PATCH 3/9] arm: ls1021a: add PCIe dts node Minghuan Lian
2016-10-10  8:47 ` [U-Boot] [PATCH 4/9] arm: ls1012a: " Minghuan Lian
2016-10-10  8:47 ` [U-Boot] [PATCH 5/9] armv8: ls1043a: " Minghuan Lian
2016-10-10  8:47 ` [U-Boot] [PATCH 6/9] armv8: ls1046a: " Minghuan Lian
2016-10-10  8:47 ` [U-Boot] [PATCH 7/9] armv8: ls2080a: " Minghuan Lian
2016-10-10  8:47 ` [U-Boot] [PATCH 8/9] pci: layerscape: rewrite pci driver based on DM Minghuan Lian
2016-10-10 11:49   ` Bin Meng
2016-10-11  7:21     ` M.H. Lian
2016-10-11  7:28       ` Bin Meng
2016-10-10  8:47 ` [U-Boot] [PATCH 9/9] armv8: ls1046a: Enable PCIe support Minghuan Lian
2016-10-10  8:47 ` Minghuan Lian
2016-10-10 11:41   ` Bin Meng
2016-10-11  7:14     ` M.H. Lian
2016-10-10  9:03 ` [U-Boot] [PATCH 1/9] dm: pci: return the real controller in pci_bus_to_hose() Bin Meng
2016-10-10  9:09   ` M.H. Lian
2016-10-10 10:37     ` Bin Meng
2016-10-11  7:12       ` M.H. Lian
2016-10-11  7:43         ` Bin Meng
2016-10-11  9:36           ` M.H. Lian
2016-10-11 10:35             ` Bin Meng
2016-10-11 11:01               ` M.H. Lian
2016-11-07 18:13             ` york sun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.