[U-Boot] [PATCH 1/9] dm: pci: return the real controller in pci_bus_to_hose()
M.H. Lian
minghuan.lian at nxp.com
Mon Oct 10 11:09:47 CEST 2016
Hi Bin,
Thanks for your comments.
The series of patches is to change legacy PCIe driver to DM PCIe driver.
The first two patches are to change DM to support multiple PCIe controllers.
The 8th patch is to change Layerscape PCIe driver based on DM
Other patches are to add PCIe dts node for five SoCs.
Thanks,
Minghuan
> -----Original Message-----
> From: Bin Meng [mailto:bmeng.cn at gmail.com]
> Sent: Monday, October 10, 2016 5:03 PM
> To: M.H. Lian <minghuan.lian at nxp.com>; Simon Glass <sjg at chromium.org>
> Cc: U-Boot Mailing List <u-boot at lists.denx.de>; Mingkai Hu
> <mingkai.hu at nxp.com>; Leo Li <leoyang.li at nxp.com>
> Subject: Re: [U-Boot] [PATCH 1/9] dm: pci: return the real controller in
> pci_bus_to_hose()
>
> +Simon
>
> Hi Minghuan,
>
> On Mon, Oct 10, 2016 at 4:47 PM, Minghuan Lian <Minghuan.Lian at nxp.com>
> wrote:
> > 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 at 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));
> > }
> > --
>
> Any reason why don't we add DM PCI to the new board?
>
> Regards,
> Bin
More information about the U-Boot
mailing list