question about pci_disable_device
Hi,
could somebody explain what determines when in the sequence of hot unplugging pci_disable_device() is called?
Regards
Oliver
Hi Oliver,
* Oliver Neukum <[email protected]>:
Quoted 4 lines
Hi,
could somebody explain what determines when in the sequence of hot unplugging
pci_disable_device()is called?
I don't know the answer, but you might have better luck cc'ing the linux-pci list too.
/ac
Quoted 11 lines · Alex Chiang
Hi Oliver,
* Oliver Neukum <[email protected]>:
Quoted 4 lines
Hi,
could somebody explain what determines when in the sequence of hot unplugging
pci_disable_device()is called?I don't know the answer, but you might have better luck cc'ing the linux-pci list too.
When a pci device is hot unplugged, .remove callback of the corresponding adapter card driver. It calls pci_disable_device().
Thanks,
Kenji Kaneshige
Quoted 2 lines
could somebody explain what determines when in the sequence of hot unplugging
pci_disable_device()is called?
I'm not positive about this, but pci_disable_device() should be called as part of the device's driver's .remove method, which is called from the sequence:
hotplug driver ->
pci_remove_bus_device() ->
pci_destroy_dev() ->
pci_stop_dev() ->
device_unregister()- R.