Re: [PATCH v3 2/6] PCI: split registration of PCI bus devices into two stages

2013-01-09 Thread Jiang Liu
On 01/09/2013 07:29 AM, Rafael J. Wysocki wrote: > On Wednesday, January 09, 2013 12:52:21 AM Jiang Liu wrote: snip >> @@ -1678,7 +1679,8 @@ struct pci_bus *pci_create_root_bus(struct device >> *parent, int bus, >> b->dev.class = &pcibus_class; >> b->dev.parent = b->bridge; >> dev_s

Re: [PATCH v3 2/6] PCI: split registration of PCI bus devices into two stages

2013-01-08 Thread Rafael J. Wysocki
On Wednesday, January 09, 2013 12:52:21 AM Jiang Liu wrote: > When handling BUS_NOTIFY_ADD_DEVICE event for a PCI bridge device, > the notification handler can't hold reference count to the new PCI bus > because the device object for the new bus (pci_dev->subordinate->dev) > hasn't been initialized

[PATCH v3 2/6] PCI: split registration of PCI bus devices into two stages

2013-01-08 Thread Jiang Liu
When handling BUS_NOTIFY_ADD_DEVICE event for a PCI bridge device, the notification handler can't hold reference count to the new PCI bus because the device object for the new bus (pci_dev->subordinate->dev) hasn't been initialized yet. Split the registration of PCI bus device into two stages as b