Re: [RFC PATCH] PCI: Enable pci bridge when it is needed

2013-04-26 Thread Yijing Wang
On 2013/4/27 9:57, Yinghai Lu wrote: > On Fri, Apr 26, 2013 at 6:51 PM, Yijing Wang wrote: >> I think it's cool! Now we enable bridge in various places, this is a >> headache. >> >> hi, yinghai, in this patch, enable bridges depend on the driver call >> pci_enable_device() explicitly. >> I was

Re: [RFC PATCH] PCI: Enable pci bridge when it is needed

2013-04-26 Thread Yinghai Lu
On Fri, Apr 26, 2013 at 6:51 PM, Yijing Wang wrote: > I think it's cool! Now we enable bridge in various places, this is a headache. > > hi, yinghai, in this patch, enable bridges depend on the driver call > pci_enable_device() explicitly. > I was a little worried If there has some devices don't

Re: [RFC PATCH] PCI: Enable pci bridge when it is needed

2013-04-26 Thread Yijing Wang
I think it's cool! Now we enable bridge in various places, this is a headache. hi, yinghai, in this patch, enable bridges depend on the driver call pci_enable_device() explicitly. I was a little worried If there has some devices don't have some drivers bound, but used by system. like ioapic,

[RFC PATCH] PCI: Enable pci bridge when it is needed

2013-04-26 Thread Yinghai Lu
Current we enable bridges after bus scan and assign resources. and it is spreaded a lot of places. We can move it to where pci device is enabled, and need to go up to root bus and enable bridge one by one down to pci dev. So that will delay enable bridge late as needed bassis, also kill one

[RFC PATCH] PCI: Enable pci bridge when it is needed

2013-04-26 Thread Yinghai Lu
Current we enable bridges after bus scan and assign resources. and it is spreaded a lot of places. We can move it to where pci device is enabled, and need to go up to root bus and enable bridge one by one down to pci dev. So that will delay enable bridge late as needed bassis, also kill one

Re: [RFC PATCH] PCI: Enable pci bridge when it is needed

2013-04-26 Thread Yijing Wang
I think it's cool! Now we enable bridge in various places, this is a headache. hi, yinghai, in this patch, enable bridges depend on the driver call pci_enable_device() explicitly. I was a little worried If there has some devices don't have some drivers bound, but used by system. like ioapic,

Re: [RFC PATCH] PCI: Enable pci bridge when it is needed

2013-04-26 Thread Yinghai Lu
On Fri, Apr 26, 2013 at 6:51 PM, Yijing Wang wangyij...@huawei.com wrote: I think it's cool! Now we enable bridge in various places, this is a headache. hi, yinghai, in this patch, enable bridges depend on the driver call pci_enable_device() explicitly. I was a little worried If there has

Re: [RFC PATCH] PCI: Enable pci bridge when it is needed

2013-04-26 Thread Yijing Wang
On 2013/4/27 9:57, Yinghai Lu wrote: On Fri, Apr 26, 2013 at 6:51 PM, Yijing Wang wangyij...@huawei.com wrote: I think it's cool! Now we enable bridge in various places, this is a headache. hi, yinghai, in this patch, enable bridges depend on the driver call pci_enable_device() explicitly.