Skip to contentSkip to conversation

question about pci_disable_device

DISCUSSION Oliver Neukum 4 participants 4 messages Oct 13, 2008 – Oct 17, 2008

lore
Share & tools
lore
#0 lore raw

Hi,

could somebody explain what determines when in the sequence of hot unplugging pci_disable_device() is called?

Regards
Oliver

#1 lore raw

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

#2 lore raw
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

#3 lore raw
In reply to Oliver Neukum
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.