Re: [PATCH v8 21/22] PCI: add match_driver in struct pci_dev

2013-01-13 Thread Rafael J. Wysocki
On Sunday, January 13, 2013 11:40:12 PM Jiang Liu wrote: > On 01/13/2013 07:49 AM, Rafael J. Wysocki wrote: > > On Friday, January 11, 2013 02:40:48 PM Yinghai Lu wrote: > >> with that we could move out attaching driver for pci device, > >> out of device_add for pci hot add path. > >> > >> pci_bus_

Re: [PATCH v8 21/22] PCI: add match_driver in struct pci_dev

2013-01-13 Thread Jiang Liu
On 01/13/2013 07:49 AM, Rafael J. Wysocki wrote: > On Friday, January 11, 2013 02:40:48 PM Yinghai Lu wrote: >> with that we could move out attaching driver for pci device, >> out of device_add for pci hot add path. >> >> pci_bus_attach_device() will attach driver to pci device. > > Clever, but I

Re: [PATCH v8 21/22] PCI: add match_driver in struct pci_dev

2013-01-12 Thread Rafael J. Wysocki
On Friday, January 11, 2013 02:40:48 PM Yinghai Lu wrote: > with that we could move out attaching driver for pci device, > out of device_add for pci hot add path. > > pci_bus_attach_device() will attach driver to pci device. Clever, but I wonder why exactly we need to do that? Rafael > Signed-

[PATCH v8 21/22] PCI: add match_driver in struct pci_dev

2013-01-11 Thread Yinghai Lu
with that we could move out attaching driver for pci device, out of device_add for pci hot add path. pci_bus_attach_device() will attach driver to pci device. Signed-off-by: Yinghai Lu --- drivers/pci/bus.c| 10 ++ drivers/pci/pci-driver.c |6 +- include/linux/pci.h