Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-19 Thread Yijing Wang
>> No, in this patch, host drivers pass a pci host bridge resources init hook >> in pci_host_info *info, and we call this info->init_res() in >> pci_create_host_bridge(). >> >> +struct pci_host_info { >> +u8 res_type; >> +void *arg; >> +struct list_head *resources; /*just for build,

Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-19 Thread Liviu Dudau
On Wed, Nov 19, 2014 at 02:09:12AM +, Yijing Wang wrote: > >> struct pci_host_bridge *pci_create_host_bridge( > >> - struct device *parent, u32 db, > >> - struct pci_ops *ops, void *sysdata, > >> - struct list_head *resources) > >> + struct device

Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-19 Thread Liviu Dudau
On Wed, Nov 19, 2014 at 02:09:12AM +, Yijing Wang wrote: struct pci_host_bridge *pci_create_host_bridge( - struct device *parent, u32 db, - struct pci_ops *ops, void *sysdata, - struct list_head *resources) + struct device *parent, u32 db,

Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-19 Thread Yijing Wang
No, in this patch, host drivers pass a pci host bridge resources init hook in pci_host_info *info, and we call this info-init_res() in pci_create_host_bridge(). +struct pci_host_info { +u8 res_type; +void *arg; +struct list_head *resources; /*just for build, will clean up

Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-18 Thread Yijing Wang
>> struct pci_host_bridge *pci_create_host_bridge( >> -struct device *parent, u32 db, >> -struct pci_ops *ops, void *sysdata, >> -struct list_head *resources) >> +struct device *parent, u32 db, struct pci_ops *ops, >> +struct

Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-18 Thread Liviu Dudau
On Mon, Nov 17, 2014 at 10:21:42AM +, Yijing Wang wrote: > From: Yijing Wang > > Now pci_host_bridge has been ripped out from pci root > bus creation. Currently pci_scan_root_bus() lacks > scalability, so platform host drivers have no proper > way to configure pci_host_bridge. E.g we should

Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-18 Thread Liviu Dudau
On Mon, Nov 17, 2014 at 10:21:42AM +, Yijing Wang wrote: From: Yijing Wang wangyijing0...@gmail.com Now pci_host_bridge has been ripped out from pci root bus creation. Currently pci_scan_root_bus() lacks scalability, so platform host drivers have no proper way to configure

Re: [RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-18 Thread Yijing Wang
struct pci_host_bridge *pci_create_host_bridge( -struct device *parent, u32 db, -struct pci_ops *ops, void *sysdata, -struct list_head *resources) +struct device *parent, u32 db, struct pci_ops *ops, +struct pci_host_info *info)

[RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-17 Thread Yijing Wang
From: Yijing Wang Now pci_host_bridge has been ripped out from pci root bus creation. Currently pci_scan_root_bus() lacks scalability, so platform host drivers have no proper way to configure pci_host_bridge. E.g we should assign msi_controller to pci_host_bridge, add argument for

[RFC PATCH 08/16] PCI: Introduce pci_scan_host_bridge() and pci_host_info

2014-11-17 Thread Yijing Wang
From: Yijing Wang wangyijing0...@gmail.com Now pci_host_bridge has been ripped out from pci root bus creation. Currently pci_scan_root_bus() lacks scalability, so platform host drivers have no proper way to configure pci_host_bridge. E.g we should assign msi_controller to pci_host_bridge, add