> On 9/24/19, 5:46 PM, Rob Herring wrote: > > Extend devm_of_pci_get_host_bridge_resources() and > pci_parse_request_of_pci_ranges() helpers to also parse the inbound > addresses from DT 'dma-ranges' and populate a resource list with the > translated addresses. This will help ensure 'dma-ranges' is always > parsed in a consistent way. > > Cc: Jingoo Han <[email protected]>
For /drivers/pci/controller/dwc/pcie-designware-host.c, Acked-by: Jingoo Han <[email protected]> Best regards, Jingoo Han > Cc: Gustavo Pimentel <[email protected]> > Cc: Lorenzo Pieralisi <[email protected]> > Cc: Bjorn Helgaas <[email protected]> > Cc: Thomas Petazzoni <[email protected]> > Cc: Will Deacon <[email protected]> > Cc: Linus Walleij <[email protected]> > Cc: Toan Le <[email protected]> > Cc: Ley Foon Tan <[email protected]> > Cc: Tom Joseph <[email protected]> > Cc: Ray Jui <[email protected]> > Cc: Scott Branden <[email protected]> > Cc: [email protected] > Cc: Ryder Lee <[email protected]> > Cc: Karthikeyan Mitran <[email protected]> > Cc: Hou Zhiqiang <[email protected]> > Cc: Simon Horman <[email protected]> > Cc: Shawn Lin <[email protected]> > Cc: Heiko Stuebner <[email protected]> > Cc: Michal Simek <[email protected]> > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Cc: [email protected] > Signed-off-by: Rob Herring <[email protected]> > --- > .../pci/controller/dwc/pcie-designware-host.c | 3 +- .... > diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c > b/drivers/pci/controller/dwc/pcie-designware-host.c > index f93252d0da5b..0743ae64bb0f 100644 > --- a/drivers/pci/controller/dwc/pcie-designware-host.c > +++ b/drivers/pci/controller/dwc/pcie-designware-host.c > @@ -342,7 +342,8 @@ int dw_pcie_host_init(struct pcie_port *pp) > return -ENOMEM; > > ret = devm_of_pci_get_host_bridge_resources(dev, 0, 0xff, > - &bridge->windows, &pp->io_base); > + &bridge->windows, &bridge->dma_ranges, > + &pp->io_base); > if (ret) > return ret; ....
