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]>:
> 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
> 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.
Alex Chiang wrote:
> Hi Oliver,
>
> * Oliver Neukum <[email protected]>:
>> 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