Re: [PATCH v2 4/4] ACPI: PCI: Add generic PCI host controller

2016-04-14 Thread Sinan Kaya
On 4/14/2016 11:53 AM, Sinan Kaya wrote: > On 4/11/2016 6:45 PM, Jayachandran C wrote: >> +/* find the entry in cfgarr which contains range bus_start..bus_end */ >> +static int mcfg_lookup(u16 seg, u8 bus_start, u8 bus_end) >> +{ >> +struct pci_config_window *cfg; >> +int i; >> + >> +if

Re: [PATCH v2 4/4] ACPI: PCI: Add generic PCI host controller

2016-04-14 Thread Sinan Kaya
On 4/11/2016 6:45 PM, Jayachandran C wrote: > +/* find the entry in cfgarr which contains range bus_start..bus_end */ > +static int mcfg_lookup(u16 seg, u8 bus_start, u8 bus_end) > +{ > + struct pci_config_window *cfg; > + int i; > + > + if (!cfgarr) > + return -ENOENT; > +

Re: [PATCH v2 4/4] ACPI: PCI: Add generic PCI host controller

2016-04-11 Thread kbuild test robot
Hi Jayachandran, [auto build test ERROR on pci/next] [also build test ERROR on v4.6-rc3 next-20160411] [if your patch is applied to the wrong git tree, please drop us a note to help improving the system] url: https://github.com/0day-ci/linux/commits/Jayachandran-C/ACPI-based-PCI-host-driver-

[PATCH v2 4/4] ACPI: PCI: Add generic PCI host controller

2016-04-11 Thread Jayachandran C
Add a generic ACPI based PCI host controller, and provide a config option ACPI_PCI_HOST_GENERIC to enable it. The implementation selects PCI_GENERIC_ECAM and uses functions from drivers/pci/ecam.h to create and access ECAM mappings. It also selects PCI_MMCONFIG and implements the pci_mmcfg_late_in