LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* question about pci_disable_device
@ 2008-10-13 17:47 Oliver Neukum
  2008-10-14 21:26 ` Alex Chiang
  2008-10-14 21:36 ` Roland Dreier
  0 siblings, 2 replies; 4+ messages in thread
From: Oliver Neukum @ 2008-10-13 17:47 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,

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

	Regards
		Oliver

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: question about pci_disable_device
  2008-10-13 17:47 question about pci_disable_device Oliver Neukum
@ 2008-10-14 21:26 ` Alex Chiang
  2008-10-17  1:38   ` Kenji Kaneshige
  2008-10-14 21:36 ` Roland Dreier
  1 sibling, 1 reply; 4+ messages in thread
From: Alex Chiang @ 2008-10-14 21:26 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: linux-pci, linux-kernel

Hi Oliver,

* Oliver Neukum <oliver@neukum.org>:
> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: question about pci_disable_device
  2008-10-13 17:47 question about pci_disable_device Oliver Neukum
  2008-10-14 21:26 ` Alex Chiang
@ 2008-10-14 21:36 ` Roland Dreier
  1 sibling, 0 replies; 4+ messages in thread
From: Roland Dreier @ 2008-10-14 21:36 UTC (permalink / raw)
  To: Oliver Neukum; +Cc: Linux Kernel Mailing List

 > 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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: question about pci_disable_device
  2008-10-14 21:26 ` Alex Chiang
@ 2008-10-17  1:38   ` Kenji Kaneshige
  0 siblings, 0 replies; 4+ messages in thread
From: Kenji Kaneshige @ 2008-10-17  1:38 UTC (permalink / raw)
  To: Alex Chiang, Oliver Neukum, linux-pci, linux-kernel

Alex Chiang wrote:
> Hi Oliver,
> 
> * Oliver Neukum <oliver@neukum.org>:
>> 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-17  1:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-13 17:47 question about pci_disable_device Oliver Neukum
2008-10-14 21:26 ` Alex Chiang
2008-10-17  1:38   ` Kenji Kaneshige
2008-10-14 21:36 ` Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).